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
official dcb
intermediary net/minecraft/class_2874
named net/minecraft/world/dimension/DimensionType
official k
intermediary comp_641
named fixedTime
official l
intermediary comp_642
named hasSkyLight
official m
intermediary comp_643
named hasCeiling
official n
intermediary comp_644
named ultrawarm
official o
intermediary comp_645
named natural
official p
intermediary comp_646
named coordinateScale
official q
intermediary comp_648
named bedWorks
official r
intermediary comp_649
named respawnAnchorWorks
official s
intermediary comp_651
named minY
official t
intermediary comp_652
named height
official u
intermediary comp_653
named logicalHeight
official v
intermediary comp_654
named infiniburn
official w
intermediary comp_655
named effects
official x
intermediary comp_656
named ambientLight
official y
intermediary comp_847
named monsterSettings
  • 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
      official a Ldcb;a:I
      intermediary field_28133 Lnet/minecraft/class_2874;field_28133:I
      named SIZE_BITS_Y Lnet/minecraft/world/dimension/DimensionType;SIZE_BITS_Y:I
    • field_33411

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

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

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

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

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

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

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

      private static final int field_31440
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official z Ldcb;z:I
      intermediary field_31440 Lnet/minecraft/class_2874;field_31440:I
      named field_31440 Lnet/minecraft/world/dimension/DimensionType;field_31440:I
    • MOON_SIZES

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

      public static final com.mojang.serialization.Codec<RegistryEntry<DimensionType>> REGISTRY_CODEC
      Mappings:
      Namespace Name Mixin selector
      official j Ldcb;j:Lcom/mojang/serialization/Codec;
      intermediary field_24756 Lnet/minecraft/class_2874;field_24756:Lcom/mojang/serialization/Codec;
      named REGISTRY_CODEC Lnet/minecraft/world/dimension/DimensionType;REGISTRY_CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • DimensionType

      public DimensionType(OptionalLong fixedTime, boolean hasSkylight, boolean bool, boolean ultrawarm, boolean bool2, double coordinateScale, boolean bool3, boolean piglinSafe, int int2, int int3, int int4, TagKey<Block> tagKey, Identifier identifier, float float2, DimensionType.MonsterSettings monsterSettings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldcb;<init>(Ljava/util/OptionalLong;ZZZZDZZIIILamr;Lacf;FLdcb$a;)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
      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
  • Method Details

    • worldFromDimensionNbt

      @Deprecated public static com.mojang.serialization.DataResult<RegistryKey<World>> worldFromDimensionNbt(com.mojang.serialization.Dynamic<?> nbt)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official a Ldcb;a(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;
      named worldFromDimensionNbt Lnet/minecraft/world/dimension/DimensionType;worldFromDimensionNbt(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/DataResult;
    • getCoordinateScaleFactor

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

      public static Path getSaveDirectory(RegistryKey<World> worldRef, Path worldDirectory)
      Mappings:
      Namespace Name Mixin selector
      official a Ldcb;a(Lace;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;
      named getSaveDirectory Lnet/minecraft/world/dimension/DimensionType;getSaveDirectory(Lnet/minecraft/registry/RegistryKey;Ljava/nio/file/Path;)Ljava/nio/file/Path;
    • hasFixedTime

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

      public float getSkyAngle(long time)
      Mappings:
      Namespace Name Mixin selector
      official a Ldcb;a(J)F
      intermediary method_28528 Lnet/minecraft/class_2874;method_28528(J)F
      named getSkyAngle Lnet/minecraft/world/dimension/DimensionType;getSkyAngle(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
      official b Ldcb;b(J)I
      intermediary method_28531 Lnet/minecraft/class_2874;method_28531(J)I
      named getMoonPhase Lnet/minecraft/world/dimension/DimensionType;getMoonPhase(J)I
    • piglinSafe

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

      public boolean hasRaids()
      Mappings:
      Namespace Name Mixin selector
      official c Ldcb;c()Z
      intermediary method_44221 Lnet/minecraft/class_2874;method_44221()Z
      named hasRaids Lnet/minecraft/world/dimension/DimensionType;hasRaids()Z
    • monsterSpawnLightTest

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

      public int monsterSpawnBlockLightLimit()
      Mappings:
      Namespace Name Mixin selector
      official e Ldcb;e()I
      intermediary method_44223 Lnet/minecraft/class_2874;method_44223()I
      named monsterSpawnBlockLightLimit Lnet/minecraft/world/dimension/DimensionType;monsterSpawnBlockLightLimit()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