public class DimensionType extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
DimensionType(OptionalLong fixedTime,
boolean hasSkylight,
boolean hasCeiling,
boolean ultrawarm,
boolean natural,
boolean shrunk,
boolean hasEnderDragonFight,
boolean piglinSafe,
boolean bedWorks,
boolean respawnAnchorWorks,
boolean hasRaids,
int logicalHeight,
BiomeAccessType biomeAccessType,
Identifier infiniburn,
float ambientLight) |
protected |
DimensionType(OptionalLong fixedTime,
boolean hasSkylight,
boolean hasCeiling,
boolean ultrawarm,
boolean natural,
boolean shrunk,
boolean piglinSafe,
boolean bedWorks,
boolean respawnAnchorWorks,
boolean hasRaids,
int logicalHeight,
Identifier infiniburn,
float ambientLight) |
public static final com.mojang.serialization.MapCodec<DimensionType> CODEC
public static final float[] field_24752
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>> field_24756
private final OptionalLong fixedTime
private final boolean hasSkyLight
private final boolean hasCeiling
private final boolean ultrawarm
private final boolean natural
private final boolean shrunk
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, boolean shrunk, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, Identifier infiniburn, float ambientLight)
protected DimensionType(OptionalLong fixedTime, boolean hasSkylight, boolean hasCeiling, boolean ultrawarm, boolean natural, boolean shrunk, boolean hasEnderDragonFight, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, BiomeAccessType biomeAccessType, Identifier infiniburn, float ambientLight)
public static DimensionType getOverworldDimensionType()
@Environment(value=CLIENT) public static DimensionType getOverworldCavesDimensionType()
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 RegistryTracker.Modifiable addRegistryDefaults(RegistryTracker.Modifiable registryTracker)
private static ChunkGenerator createEndGenerator(long seed)
private static ChunkGenerator createNetherGenerator(long seed)
public static SimpleRegistry<DimensionOptions> method_28517(long seed)
@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 boolean isShrunk()
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 long2)
public int method_28531(long long2)
public float method_28516(int int2)