public class DimensionType extends Object
Modifier | Constructor and 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) |
public static final Identifier OVERWORLD_ID
public static final Identifier THE_NETHER_ID
public static final Identifier THE_END_ID
public static final com.mojang.serialization.Codec<DimensionType> CODEC
public static final float[] MOON_SIZES
public static final RegistryKey<DimensionType> OVERWORLD_REGISTRY_KEY
public static final RegistryKey<DimensionType> THE_NETHER_REGISTRY_KEY
public static final RegistryKey<DimensionType> THE_END_REGISTRY_KEY
protected static final DimensionType OVERWORLD
protected static final DimensionType THE_NETHER
protected static final DimensionType THE_END
public static final RegistryKey<DimensionType> OVERWORLD_CAVES_REGISTRY_KEY
protected static final DimensionType OVERWORLD_CAVES
public static final com.mojang.serialization.Codec<Supplier<DimensionType>> REGISTRY_CODEC
private final OptionalLong fixedTime
private final boolean hasSkyLight
private final boolean hasCeiling
private final boolean ultrawarm
private final boolean natural
private final double coordinateScale
private final boolean hasEnderDragonFight
private final boolean piglinSafe
private final boolean bedWorks
private final boolean respawnAnchorWorks
private final boolean hasRaids
private final int logicalHeight
private final BiomeAccessType biomeAccessType
private final Identifier infiniburn
private final Identifier skyProperties
private final float ambientLight
private final transient float[] field_24767
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)
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)
private static float[] method_28515(float float2)
@Deprecated public static com.mojang.serialization.DataResult<RegistryKey<World>> method_28521(com.mojang.serialization.Dynamic<?> dynamic)
public static DynamicRegistryManager.Impl addRegistryDefaults(DynamicRegistryManager.Impl registryManager)
private static ChunkGenerator createEndGenerator(Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed)
private static ChunkGenerator createNetherGenerator(Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed)
public static SimpleRegistry<DimensionOptions> createDefaultDimensionOptions(Registry<DimensionType> dimensionRegistry, Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed)
public static double method_31109(DimensionType dimensionType, DimensionType dimensionType2)
@Deprecated public String getSuffix()
public static File getSaveDirectory(RegistryKey<World> worldRef, File root)
public boolean hasSkyLight()
public boolean hasCeiling()
public boolean isUltrawarm()
public boolean isNatural()
public double getCoordinateScale()
public boolean isPiglinSafe()
public boolean isBedWorking()
public boolean isRespawnAnchorWorking()
public boolean hasRaids()
public int getLogicalHeight()
public boolean hasEnderDragonFight()
public BiomeAccessType getBiomeAccessType()
public boolean hasFixedTime()
public float getSkyAngle(long time)
public int getMoonPhase(long time)
This is typically used to determine the size of the moon that should be rendered.
time
- the time to calculate the index frompublic float method_28516(int int2)
@Environment(value=CLIENT) public Identifier getSkyProperties()
public boolean equals(DimensionType dimensionType)