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 named net/minecraft/world/dimension/DimensionType
intermediary net/minecraft/class_2874
official dvw
named fixedTime
intermediary comp_641
official k
named hasSkyLight
intermediary comp_642
official l
named hasCeiling
intermediary comp_643
official m
named ultrawarm
intermediary comp_644
official n
named natural
intermediary comp_645
official o
named coordinateScale
intermediary comp_646
official p
named bedWorks
intermediary comp_648
official q
named respawnAnchorWorks
intermediary comp_649
official r
named minY
intermediary comp_651
official s
named height
intermediary comp_652
official t
named logicalHeight
intermediary comp_653
official u
named infiniburn
intermediary comp_654
official v
named effects
intermediary comp_655
official w
named ambientLight
intermediary comp_656
official x
named monsterSettings
intermediary comp_847
official y
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier 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
ConstructorsConstructorDescriptionDimensionType
(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 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
Ldvw;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
Ldvw;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
Ldvw;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
Ldvw;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
Ldvw;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
Ldvw;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
Ldvw;g:I
-
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
Ldvw;h:Lcom/mojang/serialization/Codec;
-
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 z
Ldvw;z: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 i
Ldvw;i:[F
-
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 j
Ldvw;j: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 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>
Ldvw;<init>(Ljava/util/OptionalLong;ZZZZDZZIIILaxf;Lalf;FLdvw$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
Ldvw;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
Ldvw;a(Ldvw;Ldvw;)D
-
getSaveDirectory
- 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
Ldvw;a(Lale;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
Ldvw;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
Ldvw;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
Ldvw;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
Ldvw;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
Ldvw;c()Z
-
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
Ldvw;d()Lbqb;
-
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
Ldvw;e()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
-