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 protected
DimensionType(OptionalLong fixedTime, boolean hasSkylight, boolean hasCeiling, boolean ultrawarm, boolean natural, double coordinateScale, boolean hasEnderDragonFight, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, BiomeAccessType biomeAccessType, Identifier infiniburn, Identifier skyProperties, float ambientLight)
protected
DimensionType(OptionalLong fixedTime, boolean hasSkylight, boolean hasCeiling, boolean ultrawarm, boolean natural, double coordinateScale, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, Identifier infiniburn, Identifier skyProperties, float ambientLight)
-
Method Summary
Modifier and Type Method Description static DynamicRegistryManager.Impl
addRegistryDefaults(DynamicRegistryManager.Impl registryManager)
static SimpleRegistry<DimensionOptions>
createDefaultDimensionOptions(Registry<DimensionType> dimensionRegistry, Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed)
private static ChunkGenerator
createEndGenerator(Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed)
private static ChunkGenerator
createNetherGenerator(Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed)
boolean
equals(DimensionType dimensionType)
BiomeAccessType
getBiomeAccessType()
double
getCoordinateScale()
Tag<Block>
getInfiniburnBlocks()
int
getLogicalHeight()
int
getMoonPhase(long time)
Gets the moon phase index of Minecraft's moon.static File
getSaveDirectory(RegistryKey<World> worldRef, File root)
float
getSkyAngle(long time)
Identifier
getSkyProperties()
String
getSuffix()
Deprecated.boolean
hasCeiling()
boolean
hasEnderDragonFight()
boolean
hasFixedTime()
boolean
hasRaids()
boolean
hasSkyLight()
boolean
isBedWorking()
boolean
isNatural()
boolean
isPiglinSafe()
boolean
isRespawnAnchorWorking()
boolean
isUltrawarm()
private static float[]
method_28515(float float2)
float
method_28516(int int2)
static com.mojang.serialization.DataResult<RegistryKey<World>>
method_28521(com.mojang.serialization.Dynamic<?> dynamic)
Deprecated.static double
method_31109(DimensionType dimensionType, DimensionType dimensionType2)
-
Field Details
-
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 -
logicalHeight
private final int logicalHeight -
biomeAccessType
-
infiniburn
-
skyProperties
-
ambientLight
private final float ambientLight -
field_24767
private final transient float[] field_24767
-
-
Constructor Details
-
DimensionType
protected DimensionType(OptionalLong fixedTime, boolean hasSkylight, boolean hasCeiling, boolean ultrawarm, boolean natural, double coordinateScale, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, Identifier infiniburn, Identifier skyProperties, float ambientLight) -
DimensionType
protected DimensionType(OptionalLong fixedTime, boolean hasSkylight, boolean hasCeiling, boolean ultrawarm, boolean natural, double coordinateScale, boolean hasEnderDragonFight, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, BiomeAccessType biomeAccessType, Identifier infiniburn, Identifier skyProperties, float ambientLight)
-
-
Method Details
-
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() -
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
-