Package net.minecraft.world.dimension
Record Class DimensionType
java.lang.Object
java.lang.Record
net.minecraft.world.dimension.DimensionType
- Record Components:
hasFixedTime-hasSkyLight-hasCeiling-coordinateScale-minY-height-logicalHeight-infiniburn-ambientLight-monsterSettings-skybox-cardinalLightType-attributes-timelines-
public record DimensionType(boolean hasFixedTime, boolean hasSkyLight, boolean hasCeiling, double coordinateScale, int minY, int height, int logicalHeight, TagKey<Block> infiniburn, float ambientLight, DimensionType.MonsterSettings monsterSettings, DimensionType.class_12326 skybox, DimensionType.class_12325 cardinalLightType, EnvironmentAttributeMap attributes, RegistryEntryList<class_12329> timelines)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/dimension/DimensionTypeintermediary net/minecraft/class_2874official eqznamed hasFixedTimeintermediary comp_5219official mnamed hasSkyLightintermediary comp_642official nnamed hasCeilingintermediary comp_643official onamed coordinateScaleintermediary comp_646official pnamed minYintermediary comp_651official qnamed heightintermediary comp_652official rnamed logicalHeightintermediary comp_653official snamed infiniburnintermediary comp_654official tnamed ambientLightintermediary comp_656official unamed monsterSettingsintermediary comp_847official vnamed skyboxintermediary comp_5220official wnamed cardinalLightTypeintermediary comp_5221official xnamed attributesintermediary comp_5146official ynamed timelinesintermediary comp_5222official z
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theambientLightrecord component.private final EnvironmentAttributeMapThe field for theattributesrecord component.private final DimensionType.class_12325The field for thecardinalLightTyperecord component.static final com.mojang.serialization.Codec<DimensionType> private final doubleThe field for thecoordinateScalerecord component.static final intstatic final intstatic final intprivate final booleanThe field for thehasCeilingrecord component.private final booleanThe field for thehasFixedTimerecord component.private final booleanThe field for thehasSkyLightrecord component.private final intThe field for theheightrecord component.The field for theinfiniburnrecord component.private final intThe field for thelogicalHeightrecord component.static final intstatic final intstatic final intprivate final intThe field for theminYrecord component.private final DimensionType.MonsterSettingsThe field for themonsterSettingsrecord component.static final float[]static final com.mojang.serialization.Codec<DimensionType> static final PacketCodec<RegistryByteBuf, RegistryEntry<DimensionType>> static final com.mojang.serialization.Codec<RegistryEntry<DimensionType>> static final intprivate final DimensionType.class_12326The field for theskyboxrecord component.private final RegistryEntryList<class_12329> The field for thetimelinesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDimensionType(boolean hasFixedTime, boolean hasSkylight, boolean hasCeiling, double coordinateScale, int minY, int height, int logicalHeight, TagKey<Block> infiniburn, float ambientLight, DimensionType.MonsterSettings monsterSettings, DimensionType.class_12326 skybox, DimensionType.class_12325 cardinalLightType, EnvironmentAttributeMap attributes, RegistryEntryList<class_12329> timelines) -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theambientLightrecord component.Returns the value of theattributesrecord component.Returns the value of thecardinalLightTyperecord component.doubleReturns the value of thecoordinateScalerecord component.private static com.mojang.serialization.Codec<DimensionType> createDimensionCodec(com.mojang.serialization.Codec<EnvironmentAttributeMap> attributesCodec) final booleanIndicates whether some other object is "equal to" this one.static doublegetCoordinateScaleFactor(DimensionType fromDimension, DimensionType toDimension) static PathgetSaveDirectory(RegistryKey<World> worldRef, Path worldDirectory) booleanReturns the value of thehasCeilingrecord component.booleanReturns the value of thehasFixedTimerecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasSkyLightrecord component.intheight()Returns the value of theheightrecord component.Returns the value of theinfiniburnrecord component.intReturns the value of thelogicalHeightrecord component.booleanintminY()Returns the value of theminYrecord component.Returns the value of themonsterSettingsrecord component.intskybox()Returns the value of theskyboxrecord component.Returns the value of thetimelinesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
hasFixedTime
private final boolean hasFixedTimeThe field for thehasFixedTimerecord component. -
hasSkyLight
private final boolean hasSkyLightThe field for thehasSkyLightrecord component. -
hasCeiling
private final boolean hasCeilingThe field for thehasCeilingrecord component. -
coordinateScale
private final double coordinateScaleThe field for thecoordinateScalerecord component. -
minY
private final int minYThe field for theminYrecord component. -
height
private final int heightThe field for theheightrecord component. -
logicalHeight
private final int logicalHeightThe field for thelogicalHeightrecord component. -
infiniburn
The field for theinfiniburnrecord component. -
ambientLight
private final float ambientLightThe field for theambientLightrecord component. -
monsterSettings
The field for themonsterSettingsrecord component. -
skybox
The field for theskyboxrecord component. -
cardinalLightType
The field for thecardinalLightTyperecord component. -
attributes
The field for theattributesrecord component. -
timelines
The field for thetimelinesrecord component. -
SIZE_BITS_Y
public static final int SIZE_BITS_Y- Mappings:
Namespace Name Mixin selector named SIZE_BITS_YLnet/minecraft/world/dimension/DimensionType;SIZE_BITS_Y:Iintermediary field_28133Lnet/minecraft/class_2874;field_28133:Iofficial aLeqz;a:I
-
field_33411
public static final int field_33411- See Also:
- Mappings:
Namespace Name Mixin selector named field_33411Lnet/minecraft/world/dimension/DimensionType;field_33411:Iintermediary field_33411Lnet/minecraft/class_2874;field_33411:Iofficial bLeqz;b:I
-
MAX_HEIGHT
public static final int MAX_HEIGHT- Mappings:
Namespace Name Mixin selector named MAX_HEIGHTLnet/minecraft/world/dimension/DimensionType;MAX_HEIGHT:Iintermediary field_28134Lnet/minecraft/class_2874;field_28134:Iofficial cLeqz;c:I
-
MAX_COLUMN_HEIGHT
public static final int MAX_COLUMN_HEIGHT- Mappings:
Namespace Name Mixin selector named MAX_COLUMN_HEIGHTLnet/minecraft/world/dimension/DimensionType;MAX_COLUMN_HEIGHT:Iintermediary field_28135Lnet/minecraft/class_2874;field_28135:Iofficial dLeqz;d:I
-
MIN_HEIGHT
public static final int MIN_HEIGHT- Mappings:
Namespace Name Mixin selector named MIN_HEIGHTLnet/minecraft/world/dimension/DimensionType;MIN_HEIGHT:Iintermediary field_28136Lnet/minecraft/class_2874;field_28136:Iofficial eLeqz;e:I
-
field_35478
public static final int field_35478- Mappings:
Namespace Name Mixin selector named field_35478Lnet/minecraft/world/dimension/DimensionType;field_35478:Iintermediary field_35478Lnet/minecraft/class_2874;field_35478:Iofficial fLeqz;f:I
-
field_35479
public static final int field_35479- Mappings:
Namespace Name Mixin selector named field_35479Lnet/minecraft/world/dimension/DimensionType;field_35479:Iintermediary field_35479Lnet/minecraft/class_2874;field_35479:Iofficial gLeqz;g:I
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/dimension/DimensionType;CODEC:Lcom/mojang/serialization/Codec;intermediary field_24757Lnet/minecraft/class_2874;field_24757:Lcom/mojang/serialization/Codec;official hLeqz;h:Lcom/mojang/serialization/Codec;
-
NETWORK_CODEC
- Mappings:
Namespace Name Mixin selector named NETWORK_CODECLnet/minecraft/world/dimension/DimensionType;NETWORK_CODEC:Lcom/mojang/serialization/Codec;intermediary field_63812Lnet/minecraft/class_2874;field_63812:Lcom/mojang/serialization/Codec;official iLeqz;i:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/world/dimension/DimensionType;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_51951Lnet/minecraft/class_2874;field_51951:Lnet/minecraft/class_9139;official jLeqz;j:Laao;
-
MOON_SIZES
public static final float[] MOON_SIZES- Mappings:
Namespace Name Mixin selector named MOON_SIZESLnet/minecraft/world/dimension/DimensionType;MOON_SIZES:[Fintermediary field_24752Lnet/minecraft/class_2874;field_24752:[Fofficial kLeqz;k:[F
-
REGISTRY_CODEC
- Mappings:
Namespace Name Mixin selector named REGISTRY_CODECLnet/minecraft/world/dimension/DimensionType;REGISTRY_CODEC:Lcom/mojang/serialization/Codec;intermediary field_24756Lnet/minecraft/class_2874;field_24756:Lcom/mojang/serialization/Codec;official lLeqz;l:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
DimensionType
public DimensionType(boolean hasFixedTime, boolean hasSkylight, boolean hasCeiling, double coordinateScale, int minY, int height, int logicalHeight, TagKey<Block> infiniburn, float ambientLight, DimensionType.MonsterSettings monsterSettings, DimensionType.class_12326 skybox, DimensionType.class_12325 cardinalLightType, EnvironmentAttributeMap attributes, RegistryEntryList<class_12329> timelines) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/dimension/DimensionType;<init>(ZZZDIIILnet/minecraft/registry/tag/TagKey;FLnet/minecraft/world/dimension/DimensionType$MonsterSettings;Lnet/minecraft/world/dimension/DimensionType$class_12326;Lnet/minecraft/world/dimension/DimensionType$class_12325;Lnet/minecraft/world/attribute/EnvironmentAttributeMap;Lnet/minecraft/registry/entry/RegistryEntryList;)Vintermediary <init>Lnet/minecraft/class_2874;<init>(ZZZDIIILnet/minecraft/class_6862;FLnet/minecraft/class_2874$class_7512;Lnet/minecraft/class_2874$class_12326;Lnet/minecraft/class_2874$class_12325;Lnet/minecraft/class_12199;Lnet/minecraft/class_6885;)Vofficial <init>Leqz;<init>(ZZZDIIILbee;FLeqz$b;Leqz$c;Leqz$a;Lcea;Ljh;)V
-
-
Method Details
-
createDimensionCodec
private static com.mojang.serialization.Codec<DimensionType> createDimensionCodec(com.mojang.serialization.Codec<EnvironmentAttributeMap> attributesCodec) - Mappings:
Namespace Name Mixin selector named createDimensionCodecLnet/minecraft/world/dimension/DimensionType;createDimensionCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;intermediary method_75746Lnet/minecraft/class_2874;method_75746(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;official aLeqz;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
getCoordinateScaleFactor
public static double getCoordinateScaleFactor(DimensionType fromDimension, DimensionType toDimension) - Mappings:
Namespace Name Mixin selector named getCoordinateScaleFactorLnet/minecraft/world/dimension/DimensionType;getCoordinateScaleFactor(Lnet/minecraft/world/dimension/DimensionType;Lnet/minecraft/world/dimension/DimensionType;)Dintermediary method_31109Lnet/minecraft/class_2874;method_31109(Lnet/minecraft/class_2874;Lnet/minecraft/class_2874;)Dofficial aLeqz;a(Leqz;Leqz;)D
-
getSaveDirectory
- Mappings:
Namespace Name Mixin selector named getSaveDirectoryLnet/minecraft/world/dimension/DimensionType;getSaveDirectory(Lnet/minecraft/registry/RegistryKey;Ljava/nio/file/Path;)Ljava/nio/file/Path;intermediary method_12488Lnet/minecraft/class_2874;method_12488(Lnet/minecraft/class_5321;Ljava/nio/file/Path;)Ljava/nio/file/Path;official aLeqz;a(Lamt;Ljava/nio/file/Path;)Ljava/nio/file/Path;
-
monsterSpawnLightTest
- Mappings:
Namespace Name Mixin selector named monsterSpawnLightTestLnet/minecraft/world/dimension/DimensionType;monsterSpawnLightTest()Lnet/minecraft/util/math/intprovider/IntProvider;intermediary method_44222Lnet/minecraft/class_2874;method_44222()Lnet/minecraft/class_6017;official aLeqz;a()Lccf;
-
monsterSpawnBlockLightLimit
public int monsterSpawnBlockLightLimit()- Mappings:
Namespace Name Mixin selector named monsterSpawnBlockLightLimitLnet/minecraft/world/dimension/DimensionType;monsterSpawnBlockLightLimit()Iintermediary method_44223Lnet/minecraft/class_2874;method_44223()Iofficial bLeqz;b()I
-
method_76467
public boolean method_76467()- Mappings:
Namespace Name Mixin selector named method_76467Lnet/minecraft/world/dimension/DimensionType;method_76467()Zintermediary method_76467Lnet/minecraft/class_2874;method_76467()Zofficial cLeqz;c()Z
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
hasFixedTime
public boolean hasFixedTime()Returns the value of thehasFixedTimerecord component.- Returns:
- the value of the
hasFixedTimerecord component
-
hasSkyLight
public boolean hasSkyLight()Returns the value of thehasSkyLightrecord component.- Returns:
- the value of the
hasSkyLightrecord component
-
hasCeiling
public boolean hasCeiling()Returns the value of thehasCeilingrecord component.- Returns:
- the value of the
hasCeilingrecord component
-
coordinateScale
public double coordinateScale()Returns the value of thecoordinateScalerecord component.- Returns:
- the value of the
coordinateScalerecord component
-
minY
public int minY()Returns the value of theminYrecord component.- Returns:
- the value of the
minYrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
logicalHeight
public int logicalHeight()Returns the value of thelogicalHeightrecord component.- Returns:
- the value of the
logicalHeightrecord component
-
infiniburn
Returns the value of theinfiniburnrecord component.- Returns:
- the value of the
infiniburnrecord component
-
ambientLight
public float ambientLight()Returns the value of theambientLightrecord component.- Returns:
- the value of the
ambientLightrecord component
-
monsterSettings
Returns the value of themonsterSettingsrecord component.- Returns:
- the value of the
monsterSettingsrecord component
-
skybox
Returns the value of theskyboxrecord component.- Returns:
- the value of the
skyboxrecord component
-
cardinalLightType
Returns the value of thecardinalLightTyperecord component.- Returns:
- the value of the
cardinalLightTyperecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
timelines
Returns the value of thetimelinesrecord component.- Returns:
- the value of the
timelinesrecord component
-