Package net.minecraft.world.dimension
Class DimensionType
java.lang.Object
net.minecraft.world.dimension.DimensionType
public class DimensionType extends Object
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description privateDimensionType(OptionalLong fixedTime, boolean hasSkylight, boolean hasCeiling, boolean ultrawarm, boolean natural, double coordinateScale, boolean hasEnderDragonFight, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int minimumY, int height, int logicalHeight, BiomeAccessType biomeAccessType, Identifier infiniburn, Identifier skyProperties, float ambientLight)Deprecated.privateDimensionType(OptionalLong fixedTime, boolean hasSkylight, boolean hasCeiling, boolean ultrawarm, boolean natural, double coordinateScale, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, int int2, int int3, Identifier identifier, Identifier identifier2, float float2) -
Method Summary
Modifier and Type Method Description static DynamicRegistryManager.ImpladdRegistryDefaults(DynamicRegistryManager.Impl registryManager)static SimpleRegistry<DimensionOptions>createDefaultDimensionOptions(Registry<DimensionType> dimensionRegistry, Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed)private static ChunkGeneratorcreateEndGenerator(Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed)private static ChunkGeneratorcreateNetherGenerator(Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed)booleanequals(DimensionType dimensionType)BiomeAccessTypegetBiomeAccessType()doublegetCoordinateScale()intgetHeight()Tag<Block>getInfiniburnBlocks()intgetLogicalHeight()intgetMinimumY()intgetMoonPhase(long time)Gets the moon phase index of Minecraft's moon.static FilegetSaveDirectory(RegistryKey<World> worldRef, File root)floatgetSkyAngle(long time)IdentifiergetSkyProperties()StringgetSuffix()Deprecated.booleanhasCeiling()booleanhasEnderDragonFight()booleanhasFixedTime()booleanhasRaids()booleanhasSkyLight()booleanisBedWorking()booleanisNatural()booleanisPiglinSafe()booleanisRespawnAnchorWorking()booleanisUltrawarm()private static float[]method_28515(float float2)floatmethod_28516(int int2)static com.mojang.serialization.DataResult<RegistryKey<World>>method_28521(com.mojang.serialization.Dynamic<?> dynamic)Deprecated.static doublemethod_31109(DimensionType dimensionType, DimensionType dimensionType2)static DimensionTypemethod_32922(OptionalLong optionalLong, boolean bool, boolean bool2, boolean bool3, boolean bool4, double double2, boolean bool5, boolean bool6, boolean bool7, boolean bool8, boolean bool9, int int2, int int3, int int4, BiomeAccessType biomeAccessType, Identifier identifier, Identifier identifier2, float float2)private static com.mojang.serialization.DataResult<DimensionType>method_32923(DimensionType type)
-
Field Details
-
field_28133
public static final int field_28133 -
field_28134
public static final int field_28134 -
field_28135
public static final int field_28135 -
field_28136
public static final int field_28136 -
OVERWORLD_ID
-
THE_NETHER_ID
-
THE_END_ID
-
CODEC
-
MOON_SIZES
public static final float[] MOON_SIZES -
OVERWORLD_REGISTRY_KEY
-
THE_NETHER_REGISTRY_KEY
-
THE_END_REGISTRY_KEY
-
OVERWORLD
-
THE_NETHER
-
THE_END
-
OVERWORLD_CAVES_REGISTRY_KEY
-
OVERWORLD_CAVES
-
REGISTRY_CODEC
-
fixedTime
-
hasSkyLight
private final boolean hasSkyLight -
hasCeiling
private final boolean hasCeiling -
ultrawarm
private final boolean ultrawarm -
natural
private final boolean natural -
coordinateScale
private final double coordinateScale -
hasEnderDragonFight
private final boolean hasEnderDragonFight -
piglinSafe
private final boolean piglinSafe -
bedWorks
private final boolean bedWorks -
respawnAnchorWorks
private final boolean respawnAnchorWorks -
hasRaids
private final boolean hasRaids -
minimumY
private final int minimumY -
height
private final int height -
logicalHeight
private final int logicalHeight -
biomeAccessType
-
infiniburn
-
skyProperties
-
ambientLight
private final float ambientLight -
field_24767
private final transient float[] field_24767
-
-
Constructor Details
-
DimensionType
private DimensionType(OptionalLong fixedTime, boolean hasSkylight, boolean hasCeiling, boolean ultrawarm, boolean natural, double coordinateScale, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, int int2, int int3, Identifier identifier, Identifier identifier2, float float2) -
DimensionType
@Deprecated private DimensionType(OptionalLong fixedTime, boolean hasSkylight, boolean hasCeiling, boolean ultrawarm, boolean natural, double coordinateScale, boolean hasEnderDragonFight, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int minimumY, int height, int logicalHeight, BiomeAccessType biomeAccessType, Identifier infiniburn, Identifier skyProperties, float ambientLight)Deprecated.
-
-
Method Details
-
method_32923
-
method_32922
public static DimensionType method_32922(OptionalLong optionalLong, boolean bool, boolean bool2, boolean bool3, boolean bool4, double double2, boolean bool5, boolean bool6, boolean bool7, boolean bool8, boolean bool9, int int2, int int3, int int4, BiomeAccessType biomeAccessType, Identifier identifier, Identifier identifier2, float float2) -
method_28515
private static float[] method_28515(float float2) -
method_28521
@Deprecated public static com.mojang.serialization.DataResult<RegistryKey<World>> method_28521(com.mojang.serialization.Dynamic<?> dynamic)Deprecated. -
addRegistryDefaults
public static DynamicRegistryManager.Impl addRegistryDefaults(DynamicRegistryManager.Impl registryManager) -
createEndGenerator
private static ChunkGenerator createEndGenerator(Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed) -
createNetherGenerator
private static ChunkGenerator createNetherGenerator(Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed) -
createDefaultDimensionOptions
public static SimpleRegistry<DimensionOptions> createDefaultDimensionOptions(Registry<DimensionType> dimensionRegistry, Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed) -
method_31109
-
getSuffix
Deprecated. -
getSaveDirectory
-
hasSkyLight
public boolean hasSkyLight() -
hasCeiling
public boolean hasCeiling() -
isUltrawarm
public boolean isUltrawarm() -
isNatural
public boolean isNatural() -
getCoordinateScale
public double getCoordinateScale() -
isPiglinSafe
public boolean isPiglinSafe() -
isBedWorking
public boolean isBedWorking() -
isRespawnAnchorWorking
public boolean isRespawnAnchorWorking() -
hasRaids
public boolean hasRaids() -
getMinimumY
public int getMinimumY() -
getHeight
public int getHeight() -
getLogicalHeight
public int getLogicalHeight() -
hasEnderDragonFight
public boolean hasEnderDragonFight() -
getBiomeAccessType
-
hasFixedTime
public boolean hasFixedTime() -
getSkyAngle
public float getSkyAngle(long time) -
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
-
method_28516
public float method_28516(int int2) -
getInfiniburnBlocks
-
getSkyProperties
-
equals
-