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/DimensionType
intermediary net/minecraft/class_2874
official eqz
named hasFixedTime
intermediary comp_5219
official m
named hasSkyLight
intermediary comp_642
official n
named hasCeiling
intermediary comp_643
official o
named coordinateScale
intermediary comp_646
official p
named minY
intermediary comp_651
official q
named height
intermediary comp_652
official r
named logicalHeight
intermediary comp_653
official s
named infiniburn
intermediary comp_654
official t
named ambientLight
intermediary comp_656
official u
named monsterSettings
intermediary comp_847
official v
named skybox
intermediary comp_5220
official w
named cardinalLightType
intermediary comp_5221
official x
named attributes
intermediary comp_5146
official y
named timelines
intermediary comp_5222
official z
  • Field Details

    • hasFixedTime

      private final boolean hasFixedTime
      The field for the hasFixedTime record component.
    • hasSkyLight

      private final boolean hasSkyLight
      The field for the hasSkyLight record component.
    • hasCeiling

      private final boolean hasCeiling
      The field for the hasCeiling record component.
    • coordinateScale

      private final double coordinateScale
      The field for the coordinateScale record component.
    • minY

      private final int minY
      The field for the minY record component.
    • height

      private final int height
      The field for the height record component.
    • logicalHeight

      private final int logicalHeight
      The field for the logicalHeight record component.
    • infiniburn

      private final TagKey<Block> infiniburn
      The field for the infiniburn record component.
    • ambientLight

      private final float ambientLight
      The field for the ambientLight record component.
    • monsterSettings

      private final DimensionType.MonsterSettings monsterSettings
      The field for the monsterSettings record component.
    • skybox

      private final DimensionType.class_12326 skybox
      The field for the skybox record component.
    • cardinalLightType

      private final DimensionType.class_12325 cardinalLightType
      The field for the cardinalLightType record component.
    • attributes

      private final EnvironmentAttributeMap attributes
      The field for the attributes record component.
    • timelines

      private final RegistryEntryList<class_12329> timelines
      The field for the timelines record component.
    • SIZE_BITS_Y

      public static final int SIZE_BITS_Y
      Mappings:
      Namespace Name Mixin selector
      named SIZE_BITS_Y Lnet/minecraft/world/dimension/DimensionType;SIZE_BITS_Y:I
      intermediary field_28133 Lnet/minecraft/class_2874;field_28133:I
      official a Leqz;a:I
    • field_33411

      public static final int field_33411
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_33411 Lnet/minecraft/world/dimension/DimensionType;field_33411:I
      intermediary field_33411 Lnet/minecraft/class_2874;field_33411:I
      official b Leqz;b:I
    • MAX_HEIGHT

      public static final int MAX_HEIGHT
      Mappings:
      Namespace Name Mixin selector
      named MAX_HEIGHT Lnet/minecraft/world/dimension/DimensionType;MAX_HEIGHT:I
      intermediary field_28134 Lnet/minecraft/class_2874;field_28134:I
      official c Leqz;c:I
    • MAX_COLUMN_HEIGHT

      public static final int MAX_COLUMN_HEIGHT
      Mappings:
      Namespace Name Mixin selector
      named MAX_COLUMN_HEIGHT Lnet/minecraft/world/dimension/DimensionType;MAX_COLUMN_HEIGHT:I
      intermediary field_28135 Lnet/minecraft/class_2874;field_28135:I
      official d Leqz;d:I
    • MIN_HEIGHT

      public static final int MIN_HEIGHT
      Mappings:
      Namespace Name Mixin selector
      named MIN_HEIGHT Lnet/minecraft/world/dimension/DimensionType;MIN_HEIGHT:I
      intermediary field_28136 Lnet/minecraft/class_2874;field_28136:I
      official e Leqz;e:I
    • field_35478

      public static final int field_35478
      Mappings:
      Namespace Name Mixin selector
      named field_35478 Lnet/minecraft/world/dimension/DimensionType;field_35478:I
      intermediary field_35478 Lnet/minecraft/class_2874;field_35478:I
      official f Leqz;f:I
    • field_35479

      public static final int field_35479
      Mappings:
      Namespace Name Mixin selector
      named field_35479 Lnet/minecraft/world/dimension/DimensionType;field_35479:I
      intermediary field_35479 Lnet/minecraft/class_2874;field_35479:I
      official g Leqz;g:I
    • CODEC

      public static final com.mojang.serialization.Codec<DimensionType> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/dimension/DimensionType;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_24757 Lnet/minecraft/class_2874;field_24757:Lcom/mojang/serialization/Codec;
      official h Leqz;h:Lcom/mojang/serialization/Codec;
    • NETWORK_CODEC

      public static final com.mojang.serialization.Codec<DimensionType> NETWORK_CODEC
      Mappings:
      Namespace Name Mixin selector
      named NETWORK_CODEC Lnet/minecraft/world/dimension/DimensionType;NETWORK_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_63812 Lnet/minecraft/class_2874;field_63812:Lcom/mojang/serialization/Codec;
      official i Leqz;i:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,RegistryEntry<DimensionType>> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/world/dimension/DimensionType;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_51951 Lnet/minecraft/class_2874;field_51951:Lnet/minecraft/class_9139;
      official j Leqz;j:Laao;
    • MOON_SIZES

      public static final float[] MOON_SIZES
      Mappings:
      Namespace Name Mixin selector
      named MOON_SIZES Lnet/minecraft/world/dimension/DimensionType;MOON_SIZES:[F
      intermediary field_24752 Lnet/minecraft/class_2874;field_24752:[F
      official k Leqz;k:[F
    • REGISTRY_CODEC

      public static final com.mojang.serialization.Codec<RegistryEntry<DimensionType>> REGISTRY_CODEC
      Mappings:
      Namespace Name Mixin selector
      named REGISTRY_CODEC Lnet/minecraft/world/dimension/DimensionType;REGISTRY_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_24756 Lnet/minecraft/class_2874;field_24756:Lcom/mojang/serialization/Codec;
      official l Leqz;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;)V
      intermediary <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;)V
      official <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 createDimensionCodec Lnet/minecraft/world/dimension/DimensionType;createDimensionCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_75746 Lnet/minecraft/class_2874;method_75746(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      official a Leqz;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
    • getCoordinateScaleFactor

      public static double getCoordinateScaleFactor(DimensionType fromDimension, DimensionType toDimension)
      Mappings:
      Namespace Name Mixin selector
      named getCoordinateScaleFactor Lnet/minecraft/world/dimension/DimensionType;getCoordinateScaleFactor(Lnet/minecraft/world/dimension/DimensionType;Lnet/minecraft/world/dimension/DimensionType;)D
      intermediary method_31109 Lnet/minecraft/class_2874;method_31109(Lnet/minecraft/class_2874;Lnet/minecraft/class_2874;)D
      official a Leqz;a(Leqz;Leqz;)D
    • getSaveDirectory

      public static Path getSaveDirectory(RegistryKey<World> worldRef, Path worldDirectory)
      Mappings:
      Namespace Name Mixin selector
      named getSaveDirectory Lnet/minecraft/world/dimension/DimensionType;getSaveDirectory(Lnet/minecraft/registry/RegistryKey;Ljava/nio/file/Path;)Ljava/nio/file/Path;
      intermediary method_12488 Lnet/minecraft/class_2874;method_12488(Lnet/minecraft/class_5321;Ljava/nio/file/Path;)Ljava/nio/file/Path;
      official a Leqz;a(Lamt;Ljava/nio/file/Path;)Ljava/nio/file/Path;
    • monsterSpawnLightTest

      public IntProvider monsterSpawnLightTest()
      Mappings:
      Namespace Name Mixin selector
      named monsterSpawnLightTest Lnet/minecraft/world/dimension/DimensionType;monsterSpawnLightTest()Lnet/minecraft/util/math/intprovider/IntProvider;
      intermediary method_44222 Lnet/minecraft/class_2874;method_44222()Lnet/minecraft/class_6017;
      official a Leqz;a()Lccf;
    • monsterSpawnBlockLightLimit

      public int monsterSpawnBlockLightLimit()
      Mappings:
      Namespace Name Mixin selector
      named monsterSpawnBlockLightLimit Lnet/minecraft/world/dimension/DimensionType;monsterSpawnBlockLightLimit()I
      intermediary method_44223 Lnet/minecraft/class_2874;method_44223()I
      official b Leqz;b()I
    • method_76467

      public boolean method_76467()
      Mappings:
      Namespace Name Mixin selector
      named method_76467 Lnet/minecraft/world/dimension/DimensionType;method_76467()Z
      intermediary method_76467 Lnet/minecraft/class_2874;method_76467()Z
      official c Leqz;c()Z
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • hasFixedTime

      public boolean hasFixedTime()
      Returns the value of the hasFixedTime record component.
      Returns:
      the value of the hasFixedTime record component
    • hasSkyLight

      public boolean hasSkyLight()
      Returns the value of the hasSkyLight record component.
      Returns:
      the value of the hasSkyLight record component
    • hasCeiling

      public boolean hasCeiling()
      Returns the value of the hasCeiling record component.
      Returns:
      the value of the hasCeiling record component
    • coordinateScale

      public double coordinateScale()
      Returns the value of the coordinateScale record component.
      Returns:
      the value of the coordinateScale record component
    • minY

      public int minY()
      Returns the value of the minY record component.
      Returns:
      the value of the minY record component
    • height

      public int height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • logicalHeight

      public int logicalHeight()
      Returns the value of the logicalHeight record component.
      Returns:
      the value of the logicalHeight record component
    • infiniburn

      public TagKey<Block> infiniburn()
      Returns the value of the infiniburn record component.
      Returns:
      the value of the infiniburn record component
    • ambientLight

      public float ambientLight()
      Returns the value of the ambientLight record component.
      Returns:
      the value of the ambientLight record component
    • monsterSettings

      public DimensionType.MonsterSettings monsterSettings()
      Returns the value of the monsterSettings record component.
      Returns:
      the value of the monsterSettings record component
    • skybox

      public DimensionType.class_12326 skybox()
      Returns the value of the skybox record component.
      Returns:
      the value of the skybox record component
    • cardinalLightType

      public DimensionType.class_12325 cardinalLightType()
      Returns the value of the cardinalLightType record component.
      Returns:
      the value of the cardinalLightType record component
    • attributes

      public EnvironmentAttributeMap attributes()
      Returns the value of the attributes record component.
      Returns:
      the value of the attributes record component
    • timelines

      public RegistryEntryList<class_12329> timelines()
      Returns the value of the timelines record component.
      Returns:
      the value of the timelines record component