public class DimensionType extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
DimensionType(OptionalLong fixedTime,
boolean hasSkylight,
boolean hasCeiling,
boolean ultrawarm,
boolean natural,
double double2,
boolean bool,
boolean bool2,
boolean bool3,
boolean bool4,
boolean bool5,
int int2,
BiomeAccessType biomeAccessType,
Identifier identifier,
float float2) |
protected |
DimensionType(OptionalLong fixedTime,
boolean hasSkylight,
boolean hasCeiling,
boolean ultrawarm,
boolean natural,
double double2,
boolean bool,
boolean bool2,
boolean bool3,
boolean bool4,
int int2,
Identifier identifier,
float float2) |
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 field_26706
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 float ambientLight
private final transient float[] field_24767
protected DimensionType(OptionalLong fixedTime, boolean hasSkylight, boolean hasCeiling, boolean ultrawarm, boolean natural, double double2, boolean bool, boolean bool2, boolean bool3, boolean bool4, int int2, Identifier identifier, float float2)
protected DimensionType(OptionalLong fixedTime, boolean hasSkylight, boolean hasCeiling, boolean ultrawarm, boolean natural, double double2, boolean bool, boolean bool2, boolean bool3, boolean bool4, boolean bool5, int int2, BiomeAccessType biomeAccessType, Identifier identifier, float float2)
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> registry, Registry<ChunkGeneratorSettings> registry2, long long2)
private static ChunkGenerator createNetherGenerator(Registry<Biome> registry, Registry<ChunkGeneratorSettings> registry2, long long2)
public static SimpleRegistry<DimensionOptions> method_28517(Registry<DimensionType> registry, Registry<Biome> registry2, Registry<ChunkGeneratorSettings> registry3, long long2)
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 method_31110()
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 method_28528(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)
public boolean method_31108(DimensionType dimensionType)