Record Class DimensionType

java.lang.Object
java.lang.Record
net.minecraft.world.dimension.DimensionType
Record Components:
fixedTime -
hasSkyLight -
hasCeiling -
ultrawarm -
natural -
coordinateScale -
bedWorks -
respawnAnchorWorks -
minY -
height -
logicalHeight -
infiniburn -
effects -
ambientLight -
monsterSettings -

public record DimensionType(OptionalLong fixedTime, boolean hasSkyLight, boolean hasCeiling, boolean ultrawarm, boolean natural, double coordinateScale, boolean bedWorks, boolean respawnAnchorWorks, int minY, int height, int logicalHeight, TagKey<Block> infiniburn, Identifier effects, float ambientLight, DimensionType.MonsterSettings monsterSettings) extends Record
Mappings:
Namespace Name
named net/minecraft/world/dimension/DimensionType
intermediary net/minecraft/class_2874
official ebp
named fixedTime
intermediary comp_641
official l
named hasSkyLight
intermediary comp_642
official m
named hasCeiling
intermediary comp_643
official n
named ultrawarm
intermediary comp_644
official o
named natural
intermediary comp_645
official p
named coordinateScale
intermediary comp_646
official q
named bedWorks
intermediary comp_648
official r
named respawnAnchorWorks
intermediary comp_649
official s
named minY
intermediary comp_651
official t
named height
intermediary comp_652
official u
named logicalHeight
intermediary comp_653
official v
named infiniburn
intermediary comp_654
official w
named effects
intermediary comp_655
official x
named ambientLight
intermediary comp_656
official y
named monsterSettings
intermediary comp_847
official z
  • Field Details

    • fixedTime

      private final OptionalLong fixedTime
      The field for the fixedTime 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.
    • ultrawarm

      private final boolean ultrawarm
      The field for the ultrawarm record component.
    • natural

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

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

      private final boolean bedWorks
      The field for the bedWorks record component.
    • respawnAnchorWorks

      private final boolean respawnAnchorWorks
      The field for the respawnAnchorWorks 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.
    • effects

      private final Identifier effects
      The field for the effects 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.
    • 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 Lebp;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 Lebp;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 Lebp;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 Lebp;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 Lebp;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 Lebp;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 Lebp;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 Lebp;h: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 i Lebp;i:Lzt;
    • field_31440

      private static final int field_31440
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31440 Lnet/minecraft/world/dimension/DimensionType;field_31440:I
      intermediary field_31440 Lnet/minecraft/class_2874;field_31440:I
      official A Lebp;A:I
    • 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 j Lebp;j:[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 k Lebp;k:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • DimensionType

      public DimensionType(OptionalLong fixedTime, boolean hasSkylight, boolean hasCeiling, boolean ultrawarm, boolean natural, double coordinateScale, boolean bedWorks, boolean piglinSafe, int minY, int height, int logicalHeight, TagKey<Block> infiniburn, Identifier effects, float ambientLight, DimensionType.MonsterSettings monsterSettings)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/dimension/DimensionType;<init>(Ljava/util/OptionalLong;ZZZZDZZIIILnet/minecraft/registry/tag/TagKey;Lnet/minecraft/util/Identifier;FLnet/minecraft/world/dimension/DimensionType$MonsterSettings;)V
      intermediary <init> Lnet/minecraft/class_2874;<init>(Ljava/util/OptionalLong;ZZZZDZZIIILnet/minecraft/class_6862;Lnet/minecraft/class_2960;FLnet/minecraft/class_2874$class_7512;)V
      official <init> Lebp;<init>(Ljava/util/OptionalLong;ZZZZDZZIIILayk;Lalz;FLebp$a;)V
  • Method Details

    • worldFromDimensionNbt

      @Deprecated public static com.mojang.serialization.DataResult<RegistryKey<World>> worldFromDimensionNbt(com.mojang.serialization.Dynamic<?> nbt)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      named worldFromDimensionNbt Lnet/minecraft/world/dimension/DimensionType;worldFromDimensionNbt(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/DataResult;
      intermediary method_28521 Lnet/minecraft/class_2874;method_28521(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/DataResult;
      official a Lebp;a(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/DataResult;
    • 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 Lebp;a(Lebp;Lebp;)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 Lebp;a(Laly;Ljava/nio/file/Path;)Ljava/nio/file/Path;
    • hasFixedTime

      public boolean hasFixedTime()
      Mappings:
      Namespace Name Mixin selector
      named hasFixedTime Lnet/minecraft/world/dimension/DimensionType;hasFixedTime()Z
      intermediary method_29960 Lnet/minecraft/class_2874;method_29960()Z
      official a Lebp;a()Z
    • getSkyAngle

      public float getSkyAngle(long time)
      Mappings:
      Namespace Name Mixin selector
      named getSkyAngle Lnet/minecraft/world/dimension/DimensionType;getSkyAngle(J)F
      intermediary method_28528 Lnet/minecraft/class_2874;method_28528(J)F
      official a Lebp;a(J)F
    • getMoonPhase

      public int getMoonPhase(long time)
      Gets the moon phase index of Minecraft's moon.

      This is typically used to determine the size of the moon that should be rendered.

      Parameters:
      time - the time to calculate the index from
      Mappings:
      Namespace Name Mixin selector
      named getMoonPhase Lnet/minecraft/world/dimension/DimensionType;getMoonPhase(J)I
      intermediary method_28531 Lnet/minecraft/class_2874;method_28531(J)I
      official b Lebp;b(J)I
    • piglinSafe

      public boolean piglinSafe()
      Mappings:
      Namespace Name Mixin selector
      named piglinSafe Lnet/minecraft/world/dimension/DimensionType;piglinSafe()Z
      intermediary method_44220 Lnet/minecraft/class_2874;method_44220()Z
      official b Lebp;b()Z
    • hasRaids

      public boolean hasRaids()
      Mappings:
      Namespace Name Mixin selector
      named hasRaids Lnet/minecraft/world/dimension/DimensionType;hasRaids()Z
      intermediary method_44221 Lnet/minecraft/class_2874;method_44221()Z
      official c Lebp;c()Z
    • 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 d Lebp;d()Lbsn;
    • 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 e Lebp;e()I
    • 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.
    • fixedTime

      public OptionalLong fixedTime()
      Returns the value of the fixedTime record component.
      Returns:
      the value of the fixedTime 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
    • ultrawarm

      public boolean ultrawarm()
      Returns the value of the ultrawarm record component.
      Returns:
      the value of the ultrawarm record component
    • natural

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

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

      public boolean bedWorks()
      Returns the value of the bedWorks record component.
      Returns:
      the value of the bedWorks record component
    • respawnAnchorWorks

      public boolean respawnAnchorWorks()
      Returns the value of the respawnAnchorWorks record component.
      Returns:
      the value of the respawnAnchorWorks 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
    • effects

      public Identifier effects()
      Returns the value of the effects record component.
      Returns:
      the value of the effects 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