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 dmqintermediary net/minecraft/class_2874named net/minecraft/world/dimension/DimensionTypeofficial kintermediary comp_641named fixedTimeofficial lintermediary comp_642named hasSkyLightofficial mintermediary comp_643named hasCeilingofficial nintermediary comp_644named ultrawarmofficial ointermediary comp_645named naturalofficial pintermediary comp_646named coordinateScaleofficial qintermediary comp_648named bedWorksofficial rintermediary comp_649named respawnAnchorWorksofficial sintermediary comp_651named minYofficial tintermediary comp_652named heightofficial uintermediary comp_653named logicalHeightofficial vintermediary comp_654named infiniburnofficial wintermediary comp_655named effectsofficial xintermediary comp_656named ambientLightofficial yintermediary comp_847named monsterSettings
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theambientLightrecord component.private final booleanThe field for thebedWorksrecord component.static final com.mojang.serialization.Codec<DimensionType>private final doubleThe field for thecoordinateScalerecord component.private final IdentifierThe field for theeffectsrecord component.private static final intstatic final intstatic final intstatic final intprivate final OptionalLongThe field for thefixedTimerecord component.private final booleanThe field for thehasCeilingrecord component.private final booleanThe field for thehasSkyLightrecord component.private final intThe field for theheightrecord component.The field for theinfiniburnrecord component.private final intThe field for thelogicalHeightrecord component.static final intstatic final intstatic final intprivate final intThe field for theminYrecord component.private final DimensionType.MonsterSettingsThe field for themonsterSettingsrecord component.static final float[]private final booleanThe field for thenaturalrecord component.static final com.mojang.serialization.Codec<RegistryEntry<DimensionType>>private final booleanThe field for therespawnAnchorWorksrecord component.static final intprivate final booleanThe field for theultrawarmrecord 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 TypeMethodDescriptionfloatReturns the value of theambientLightrecord component.booleanbedWorks()Returns the value of thebedWorksrecord component.doubleReturns the value of thecoordinateScalerecord component.effects()Returns the value of theeffectsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefixedTimerecord component.static doublegetCoordinateScaleFactor(DimensionType fromDimension, DimensionType toDimension) intgetMoonPhase(long time) Gets the moon phase index of Minecraft's moon.static PathgetSaveDirectory(RegistryKey<World> worldRef, Path worldDirectory) floatgetSkyAngle(long time) booleanReturns the value of thehasCeilingrecord component.booleanfinal inthashCode()Returns a hash code value for this object.booleanhasRaids()booleanReturns the value of thehasSkyLightrecord component.intheight()Returns the value of theheightrecord component.Returns the value of theinfiniburnrecord component.intReturns the value of thelogicalHeightrecord component.intminY()Returns the value of theminYrecord component.Returns the value of themonsterSettingsrecord component.intbooleannatural()Returns the value of thenaturalrecord component.booleanbooleanReturns the value of therespawnAnchorWorksrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theultrawarmrecord component.static com.mojang.serialization.DataResult<RegistryKey<World>>worldFromDimensionNbt(com.mojang.serialization.Dynamic<?> nbt) Deprecated.
-
Field Details
-
fixedTime
The field for thefixedTimerecord component. -
hasSkyLight
private final boolean hasSkyLightThe field for thehasSkyLightrecord component. -
hasCeiling
private final boolean hasCeilingThe field for thehasCeilingrecord component. -
ultrawarm
private final boolean ultrawarmThe field for theultrawarmrecord component. -
natural
private final boolean naturalThe field for thenaturalrecord component. -
coordinateScale
private final double coordinateScaleThe field for thecoordinateScalerecord component. -
bedWorks
private final boolean bedWorksThe field for thebedWorksrecord component. -
respawnAnchorWorks
private final boolean respawnAnchorWorksThe field for therespawnAnchorWorksrecord component. -
minY
private final int minYThe field for theminYrecord component. -
height
private final int heightThe field for theheightrecord component. -
logicalHeight
private final int logicalHeightThe field for thelogicalHeightrecord component. -
infiniburn
The field for theinfiniburnrecord component. -
effects
The field for theeffectsrecord component. -
ambientLight
private final float ambientLightThe field for theambientLightrecord component. -
monsterSettings
The field for themonsterSettingsrecord component. -
SIZE_BITS_Y
public static final int SIZE_BITS_Y- Mappings:
Namespace Name Mixin selector official aLdmq;a:Iintermediary field_28133Lnet/minecraft/class_2874;field_28133:Inamed SIZE_BITS_YLnet/minecraft/world/dimension/DimensionType;SIZE_BITS_Y:I
-
field_33411
public static final int field_33411- See Also:
- Mappings:
Namespace Name Mixin selector official bLdmq;b:Iintermediary field_33411Lnet/minecraft/class_2874;field_33411:Inamed field_33411Lnet/minecraft/world/dimension/DimensionType;field_33411:I
-
MAX_HEIGHT
public static final int MAX_HEIGHT- Mappings:
Namespace Name Mixin selector official cLdmq;c:Iintermediary field_28134Lnet/minecraft/class_2874;field_28134:Inamed MAX_HEIGHTLnet/minecraft/world/dimension/DimensionType;MAX_HEIGHT:I
-
MAX_COLUMN_HEIGHT
public static final int MAX_COLUMN_HEIGHT- Mappings:
Namespace Name Mixin selector official dLdmq;d:Iintermediary field_28135Lnet/minecraft/class_2874;field_28135:Inamed MAX_COLUMN_HEIGHTLnet/minecraft/world/dimension/DimensionType;MAX_COLUMN_HEIGHT:I
-
MIN_HEIGHT
public static final int MIN_HEIGHT- Mappings:
Namespace Name Mixin selector official eLdmq;e:Iintermediary field_28136Lnet/minecraft/class_2874;field_28136:Inamed MIN_HEIGHTLnet/minecraft/world/dimension/DimensionType;MIN_HEIGHT:I
-
field_35478
public static final int field_35478- Mappings:
Namespace Name Mixin selector official fLdmq;f:Iintermediary field_35478Lnet/minecraft/class_2874;field_35478:Inamed field_35478Lnet/minecraft/world/dimension/DimensionType;field_35478:I
-
field_35479
public static final int field_35479- Mappings:
Namespace Name Mixin selector official gLdmq;g:Iintermediary field_35479Lnet/minecraft/class_2874;field_35479:Inamed field_35479Lnet/minecraft/world/dimension/DimensionType;field_35479:I
-
CODEC
- Mappings:
Namespace Name Mixin selector official hLdmq;h:Lcom/mojang/serialization/Codec;intermediary field_24757Lnet/minecraft/class_2874;field_24757:Lcom/mojang/serialization/Codec;named CODECLnet/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 zLdmq;z:Iintermediary field_31440Lnet/minecraft/class_2874;field_31440:Inamed field_31440Lnet/minecraft/world/dimension/DimensionType;field_31440:I
-
MOON_SIZES
public static final float[] MOON_SIZES- Mappings:
Namespace Name Mixin selector official iLdmq;i:[Fintermediary field_24752Lnet/minecraft/class_2874;field_24752:[Fnamed MOON_SIZESLnet/minecraft/world/dimension/DimensionType;MOON_SIZES:[F
-
REGISTRY_CODEC
- Mappings:
Namespace Name Mixin selector official jLdmq;j:Lcom/mojang/serialization/Codec;intermediary field_24756Lnet/minecraft/class_2874;field_24756:Lcom/mojang/serialization/Codec;named REGISTRY_CODECLnet/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>Ldmq;<init>(Ljava/util/OptionalLong;ZZZZDZZIIILasw;Lahg;FLdmq$a;)Vintermediary <init>Lnet/minecraft/class_2874;<init>(Ljava/util/OptionalLong;ZZZZDZZIIILnet/minecraft/class_6862;Lnet/minecraft/class_2960;FLnet/minecraft/class_2874$class_7512;)Vnamed <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 aLdmq;a(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/DataResult;intermediary method_28521Lnet/minecraft/class_2874;method_28521(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/DataResult;named worldFromDimensionNbtLnet/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 aLdmq;a(Ldmq;Ldmq;)Dintermediary method_31109Lnet/minecraft/class_2874;method_31109(Lnet/minecraft/class_2874;Lnet/minecraft/class_2874;)Dnamed getCoordinateScaleFactorLnet/minecraft/world/dimension/DimensionType;getCoordinateScaleFactor(Lnet/minecraft/world/dimension/DimensionType;Lnet/minecraft/world/dimension/DimensionType;)D
-
getSaveDirectory
- Mappings:
Namespace Name Mixin selector official aLdmq;a(Lahf;Ljava/nio/file/Path;)Ljava/nio/file/Path;intermediary method_12488Lnet/minecraft/class_2874;method_12488(Lnet/minecraft/class_5321;Ljava/nio/file/Path;)Ljava/nio/file/Path;named getSaveDirectoryLnet/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 aLdmq;a()Zintermediary method_29960Lnet/minecraft/class_2874;method_29960()Znamed hasFixedTimeLnet/minecraft/world/dimension/DimensionType;hasFixedTime()Z
-
getSkyAngle
public float getSkyAngle(long time) - Mappings:
Namespace Name Mixin selector official aLdmq;a(J)Fintermediary method_28528Lnet/minecraft/class_2874;method_28528(J)Fnamed getSkyAngleLnet/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 bLdmq;b(J)Iintermediary method_28531Lnet/minecraft/class_2874;method_28531(J)Inamed getMoonPhaseLnet/minecraft/world/dimension/DimensionType;getMoonPhase(J)I
-
piglinSafe
public boolean piglinSafe()- Mappings:
Namespace Name Mixin selector official bLdmq;b()Zintermediary method_44220Lnet/minecraft/class_2874;method_44220()Znamed piglinSafeLnet/minecraft/world/dimension/DimensionType;piglinSafe()Z
-
hasRaids
public boolean hasRaids()- Mappings:
Namespace Name Mixin selector official cLdmq;c()Zintermediary method_44221Lnet/minecraft/class_2874;method_44221()Znamed hasRaidsLnet/minecraft/world/dimension/DimensionType;hasRaids()Z
-
monsterSpawnLightTest
- Mappings:
Namespace Name Mixin selector official dLdmq;d()Lbjg;intermediary method_44222Lnet/minecraft/class_2874;method_44222()Lnet/minecraft/class_6017;named monsterSpawnLightTestLnet/minecraft/world/dimension/DimensionType;monsterSpawnLightTest()Lnet/minecraft/util/math/intprovider/IntProvider;
-
monsterSpawnBlockLightLimit
public int monsterSpawnBlockLightLimit()- Mappings:
Namespace Name Mixin selector official eLdmq;e()Iintermediary method_44223Lnet/minecraft/class_2874;method_44223()Inamed monsterSpawnBlockLightLimitLnet/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 thefixedTimerecord component.- Returns:
- the value of the
fixedTimerecord component
-
hasSkyLight
public boolean hasSkyLight()Returns the value of thehasSkyLightrecord component.- Returns:
- the value of the
hasSkyLightrecord component
-
hasCeiling
public boolean hasCeiling()Returns the value of thehasCeilingrecord component.- Returns:
- the value of the
hasCeilingrecord component
-
ultrawarm
public boolean ultrawarm()Returns the value of theultrawarmrecord component.- Returns:
- the value of the
ultrawarmrecord component
-
natural
public boolean natural()Returns the value of thenaturalrecord component.- Returns:
- the value of the
naturalrecord component
-
coordinateScale
public double coordinateScale()Returns the value of thecoordinateScalerecord component.- Returns:
- the value of the
coordinateScalerecord component
-
bedWorks
public boolean bedWorks()Returns the value of thebedWorksrecord component.- Returns:
- the value of the
bedWorksrecord component
-
respawnAnchorWorks
public boolean respawnAnchorWorks()Returns the value of therespawnAnchorWorksrecord component.- Returns:
- the value of the
respawnAnchorWorksrecord component
-
minY
public int minY()Returns the value of theminYrecord component.- Returns:
- the value of the
minYrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
logicalHeight
public int logicalHeight()Returns the value of thelogicalHeightrecord component.- Returns:
- the value of the
logicalHeightrecord component
-
infiniburn
Returns the value of theinfiniburnrecord component.- Returns:
- the value of the
infiniburnrecord component
-
effects
Returns the value of theeffectsrecord component.- Returns:
- the value of the
effectsrecord component
-
ambientLight
public float ambientLight()Returns the value of theambientLightrecord component.- Returns:
- the value of the
ambientLightrecord component
-
monsterSettings
Returns the value of themonsterSettingsrecord component.- Returns:
- the value of the
monsterSettingsrecord component
-