Interface DimensionType
public sealed interface DimensionType
https://minecraft.wiki/w/Custom_dimension
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RegistryKey<DimensionType> static final RegistryKey<DimensionType> static final Codec<DimensionType> static final RegistryKey<DimensionType> static final RegistryKey<DimensionType> static final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionfloatstatic DimensionType.Builderbuilder()doublestatic DimensionTypecreate(boolean hasFixedTime, boolean hasSkyLight, boolean hasCeiling, double coordinateScale, int minY, int height, int logicalHeight, String infiniburn, float ambientLight, IntProvider monsterSpawnLightLevel, int monsterSpawnBlockLightLimit, DimensionType.Skybox skybox, DimensionType.CardinalLight cardinalLight, EnvironmentAttributeMap attributes, RegistryTag<Timeline> timelines) static DynamicRegistry<DimensionType> createDefaultRegistry(Registries registries) Creates a new registry for dimension types, loading the vanilla dimension types.booleanbooleanbooleanintheight()intdefault intmaxY()intminY()intskybox()default int
-
Field Details
-
VANILLA_MIN_Y
static final int VANILLA_MIN_Y- See Also:
-
VANILLA_MAX_Y
static final int VANILLA_MAX_Y- See Also:
-
REGISTRY_CODEC
-
THE_END
-
OVERWORLD_CAVES
-
THE_NETHER
-
OVERWORLD
-
-
Method Details
-
create
static DimensionType create(boolean hasFixedTime, boolean hasSkyLight, boolean hasCeiling, double coordinateScale, int minY, int height, int logicalHeight, String infiniburn, float ambientLight, IntProvider monsterSpawnLightLevel, int monsterSpawnBlockLightLimit, DimensionType.Skybox skybox, DimensionType.CardinalLight cardinalLight, EnvironmentAttributeMap attributes, RegistryTag<Timeline> timelines) -
builder
-
createDefaultRegistry
Creates a new registry for dimension types, loading the vanilla dimension types.
- See Also:
-
hasFixedTime
boolean hasFixedTime() -
hasSkylight
boolean hasSkylight() -
hasCeiling
boolean hasCeiling() -
coordinateScale
double coordinateScale() -
minY
int minY() -
maxY
default int maxY() -
height
int height() -
logicalHeight
int logicalHeight() -
infiniburn
String infiniburn() -
ambientLight
float ambientLight() -
monsterSpawnLightLevel
IntProvider monsterSpawnLightLevel() -
monsterSpawnBlockLightLimit
int monsterSpawnBlockLightLimit() -
skybox
DimensionType.Skybox skybox() -
cardinalLight
DimensionType.CardinalLight cardinalLight() -
attributes
EnvironmentAttributeMap attributes() -
timelines
RegistryTag<Timeline> timelines() -
totalHeight
default int totalHeight()
-