Package net.minecraft.world.dimension
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
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final float
The field for theambientLight
record component.private final boolean
The field for thebedWorks
record component.static final com.mojang.serialization.Codec<DimensionType>
private final double
The field for thecoordinateScale
record component.private final Identifier
The field for theeffects
record component.private static final int
static final int
static final int
static final int
private final OptionalLong
The field for thefixedTime
record component.private final boolean
The field for thehasCeiling
record component.private final boolean
The field for thehasSkyLight
record component.private final int
The field for theheight
record component.The field for theinfiniburn
record component.private final int
The field for thelogicalHeight
record component.static final int
static final int
static final int
private final int
The field for theminY
record component.private final DimensionType.MonsterSettings
The field for themonsterSettings
record component.static final float[]
private final boolean
The field for thenatural
record component.static final com.mojang.serialization.Codec<RegistryEntry<DimensionType>>
private final boolean
The field for therespawnAnchorWorks
record component.static final int
private final boolean
The field for theultrawarm
record component. -
Constructor Summary
ConstructorDescriptionDimensionType
(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) -
Method Summary
Modifier and TypeMethodDescriptionfloat
Returns the value of theambientLight
record component.boolean
bedWorks()
Returns the value of thebedWorks
record component.double
Returns the value of thecoordinateScale
record component.effects()
Returns the value of theeffects
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefixedTime
record component.static double
getCoordinateScaleFactor
(DimensionType fromDimension, DimensionType toDimension) int
getMoonPhase
(long time) Gets the moon phase index of Minecraft's moon.static Path
getSaveDirectory
(RegistryKey<World> worldRef, Path worldDirectory) float
getSkyAngle
(long time) boolean
Returns the value of thehasCeiling
record component.boolean
final int
hashCode()
Returns a hash code value for this object.boolean
hasRaids()
boolean
Returns the value of thehasSkyLight
record component.int
height()
Returns the value of theheight
record component.Returns the value of theinfiniburn
record component.int
Returns the value of thelogicalHeight
record component.int
minY()
Returns the value of theminY
record component.Returns the value of themonsterSettings
record component.int
boolean
natural()
Returns the value of thenatural
record component.boolean
boolean
Returns the value of therespawnAnchorWorks
record component.final String
toString()
Returns a string representation of this record class.boolean
Returns the value of theultrawarm
record component.static com.mojang.serialization.DataResult<RegistryKey<World>>
worldFromDimensionNbt
(com.mojang.serialization.Dynamic<?> nbt) Deprecated.
-
Field Details
-
fixedTime
The field for thefixedTime
record component. -
hasSkyLight
private final boolean hasSkyLightThe field for thehasSkyLight
record component. -
hasCeiling
private final boolean hasCeilingThe field for thehasCeiling
record component. -
ultrawarm
private final boolean ultrawarmThe field for theultrawarm
record component. -
natural
private final boolean naturalThe field for thenatural
record component. -
coordinateScale
private final double coordinateScaleThe field for thecoordinateScale
record component. -
bedWorks
private final boolean bedWorksThe field for thebedWorks
record component. -
respawnAnchorWorks
private final boolean respawnAnchorWorksThe field for therespawnAnchorWorks
record component. -
minY
private final int minYThe field for theminY
record component. -
height
private final int heightThe field for theheight
record component. -
logicalHeight
private final int logicalHeightThe field for thelogicalHeight
record component. -
infiniburn
The field for theinfiniburn
record component. -
effects
The field for theeffects
record component. -
ambientLight
private final float ambientLightThe field for theambientLight
record component. -
monsterSettings
The field for themonsterSettings
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
- 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
- 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
- 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
- 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
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 '=='. -
fixedTime
Returns the value of thefixedTime
record component.- Returns:
- the value of the
fixedTime
record component
-
hasSkyLight
public boolean hasSkyLight()Returns the value of thehasSkyLight
record component.- Returns:
- the value of the
hasSkyLight
record component
-
hasCeiling
public boolean hasCeiling()Returns the value of thehasCeiling
record component.- Returns:
- the value of the
hasCeiling
record component
-
ultrawarm
public boolean ultrawarm()Returns the value of theultrawarm
record component.- Returns:
- the value of the
ultrawarm
record component
-
natural
public boolean natural()Returns the value of thenatural
record component.- Returns:
- the value of the
natural
record component
-
coordinateScale
public double coordinateScale()Returns the value of thecoordinateScale
record component.- Returns:
- the value of the
coordinateScale
record component
-
bedWorks
public boolean bedWorks()Returns the value of thebedWorks
record component.- Returns:
- the value of the
bedWorks
record component
-
respawnAnchorWorks
public boolean respawnAnchorWorks()Returns the value of therespawnAnchorWorks
record component.- Returns:
- the value of the
respawnAnchorWorks
record component
-
minY
public int minY()Returns the value of theminY
record component.- Returns:
- the value of the
minY
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
logicalHeight
public int logicalHeight()Returns the value of thelogicalHeight
record component.- Returns:
- the value of the
logicalHeight
record component
-
infiniburn
Returns the value of theinfiniburn
record component.- Returns:
- the value of the
infiniburn
record component
-
effects
Returns the value of theeffects
record component.- Returns:
- the value of the
effects
record component
-
ambientLight
public float ambientLight()Returns the value of theambientLight
record component.- Returns:
- the value of the
ambientLight
record component
-
monsterSettings
Returns the value of themonsterSettings
record component.- Returns:
- the value of the
monsterSettings
record component
-