Class DimensionType
java.lang.Object
net.minecraft.world.level.dimension.DimensionType
-
Field Summary
Modifier and TypeFieldDescriptionprivate float
private boolean
private BiomeZoomer
static int
private float[]
static com.mojang.serialization.Codec<Supplier<DimensionType>>
private double
private boolean
protected static DimensionType
protected static DimensionType
protected static DimensionType
protected static DimensionType
static com.mojang.serialization.Codec<DimensionType>
private ResourceLocation
static ResourceLocation
static ResourceKey<DimensionType>
private OptionalLong
private boolean
private boolean
private boolean
private int
private ResourceLocation
private int
static int
static int
static int
private int
static float[]
private static int
private boolean
static ResourceLocation
static ResourceKey<DimensionType>
static ResourceKey<DimensionType>
static ResourceLocation
static ResourceKey<DimensionType>
private boolean
private boolean
private boolean
static int
-
Constructor Summary
ModifierConstructorDescriptionprivate
DimensionType(OptionalLong p_156673_, boolean p_156674_, boolean p_156675_, boolean p_156676_, boolean p_156677_, double p_156678_, boolean p_156679_, boolean p_156680_, boolean p_156681_, boolean p_156682_, boolean p_156683_, int p_156684_, int p_156685_, int p_156686_, BiomeZoomer p_156687_, ResourceLocation p_156688_, ResourceLocation p_156689_, float p_156690_)
Deprecated.private
DimensionType(OptionalLong p_156656_, boolean p_156657_, boolean p_156658_, boolean p_156659_, boolean p_156660_, double p_156661_, boolean p_156662_, boolean p_156663_, boolean p_156664_, boolean p_156665_, int p_156666_, int p_156667_, int p_156668_, ResourceLocation p_156669_, ResourceLocation p_156670_, float p_156671_)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
bedWorks()
float
brightness(int p_63903_)
double
static DimensionType
create(OptionalLong p_156700_, boolean p_156701_, boolean p_156702_, boolean p_156703_, boolean p_156704_, double p_156705_, boolean p_156706_, boolean p_156707_, boolean p_156708_, boolean p_156709_, boolean p_156710_, int p_156711_, int p_156712_, int p_156713_, BiomeZoomer p_156714_, ResourceLocation p_156715_, ResourceLocation p_156716_, float p_156717_)
boolean
static MappedRegistry<LevelStem>
defaultDimensions(Registry<DimensionType> p_63922_, Registry<Biome> p_63923_, Registry<NoiseGeneratorSettings> p_63924_, long p_63925_)
private static ChunkGenerator
defaultEndGenerator(Registry<Biome> p_63918_, Registry<NoiseGeneratorSettings> p_63919_, long p_63920_)
private static ChunkGenerator
defaultNetherGenerator(Registry<Biome> p_63943_, Registry<NoiseGeneratorSettings> p_63944_, long p_63945_)
boolean
equalTo(DimensionType p_63907_)
private static float[]
fillBrightnessRamp(float p_63901_)
Deprecated.static File
getStorageFolder(ResourceKey<Level> p_63933_, File p_63934_)
static double
getTeleportationScale(DimensionType p_63909_, DimensionType p_63910_)
private static com.mojang.serialization.DataResult<DimensionType>
guardY(DimensionType p_156719_)
boolean
boolean
boolean
hasRaids()
boolean
int
height()
int
int
minY()
int
moonPhase(long p_63937_)
boolean
natural()
static com.mojang.serialization.DataResult<ResourceKey<Level>>
parseLegacy(com.mojang.serialization.Dynamic<?> p_63912_)
Deprecated.boolean
registerBuiltin(RegistryAccess.RegistryHolder p_63927_)
boolean
float
timeOfDay(long p_63905_)
boolean
-
Field Details
-
BITS_FOR_Y
public static final int BITS_FOR_Y -
MIN_HEIGHT
public static final int MIN_HEIGHT- See Also:
- Constant Field Values
-
Y_SIZE
public static final int Y_SIZE -
MAX_Y
public static final int MAX_Y -
MIN_Y
public static final int MIN_Y -
OVERWORLD_EFFECTS
-
NETHER_EFFECTS
-
END_EFFECTS
-
DIRECT_CODEC
-
MOON_PHASES
private static final int MOON_PHASES- See Also:
- Constant Field Values
-
MOON_BRIGHTNESS_PER_PHASE
public static final float[] MOON_BRIGHTNESS_PER_PHASE -
OVERWORLD_LOCATION
-
NETHER_LOCATION
-
END_LOCATION
-
DEFAULT_OVERWORLD
-
DEFAULT_NETHER
-
DEFAULT_END
-
OVERWORLD_CAVES_LOCATION
-
DEFAULT_OVERWORLD_CAVES
-
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 -
createDragonFight
private final boolean createDragonFight -
piglinSafe
private final boolean piglinSafe -
bedWorks
private final boolean bedWorks -
respawnAnchorWorks
private final boolean respawnAnchorWorks -
hasRaids
private final boolean hasRaids -
minY
private final int minY -
height
private final int height -
logicalHeight
private final int logicalHeight -
biomeZoomer
-
infiniburn
-
effectsLocation
-
ambientLight
private final float ambientLight -
brightnessRamp
private final transient float[] brightnessRamp
-
-
Constructor Details
-
DimensionType
private DimensionType(OptionalLong p_156656_, boolean p_156657_, boolean p_156658_, boolean p_156659_, boolean p_156660_, double p_156661_, boolean p_156662_, boolean p_156663_, boolean p_156664_, boolean p_156665_, int p_156666_, int p_156667_, int p_156668_, ResourceLocation p_156669_, ResourceLocation p_156670_, float p_156671_) -
DimensionType
@Deprecated private DimensionType(OptionalLong p_156673_, boolean p_156674_, boolean p_156675_, boolean p_156676_, boolean p_156677_, double p_156678_, boolean p_156679_, boolean p_156680_, boolean p_156681_, boolean p_156682_, boolean p_156683_, int p_156684_, int p_156685_, int p_156686_, BiomeZoomer p_156687_, ResourceLocation p_156688_, ResourceLocation p_156689_, float p_156690_)Deprecated.
-
-
Method Details
-
guardY
-
create
public static DimensionType create(OptionalLong p_156700_, boolean p_156701_, boolean p_156702_, boolean p_156703_, boolean p_156704_, double p_156705_, boolean p_156706_, boolean p_156707_, boolean p_156708_, boolean p_156709_, boolean p_156710_, int p_156711_, int p_156712_, int p_156713_, BiomeZoomer p_156714_, ResourceLocation p_156715_, ResourceLocation p_156716_, float p_156717_) -
fillBrightnessRamp
private static float[] fillBrightnessRamp(float p_63901_) -
parseLegacy
@Deprecated public static com.mojang.serialization.DataResult<ResourceKey<Level>> parseLegacy(com.mojang.serialization.Dynamic<?> p_63912_)Deprecated. -
registerBuiltin
public static RegistryAccess.RegistryHolder registerBuiltin(RegistryAccess.RegistryHolder p_63927_) -
defaultEndGenerator
private static ChunkGenerator defaultEndGenerator(Registry<Biome> p_63918_, Registry<NoiseGeneratorSettings> p_63919_, long p_63920_) -
defaultNetherGenerator
private static ChunkGenerator defaultNetherGenerator(Registry<Biome> p_63943_, Registry<NoiseGeneratorSettings> p_63944_, long p_63945_) -
defaultDimensions
public static MappedRegistry<LevelStem> defaultDimensions(Registry<DimensionType> p_63922_, Registry<Biome> p_63923_, Registry<NoiseGeneratorSettings> p_63924_, long p_63925_) -
getTeleportationScale
-
getFileSuffix
Deprecated. -
getStorageFolder
-
hasSkyLight
public boolean hasSkyLight() -
hasCeiling
public boolean hasCeiling() -
ultraWarm
public boolean ultraWarm() -
natural
public boolean natural() -
coordinateScale
public double coordinateScale() -
piglinSafe
public boolean piglinSafe() -
bedWorks
public boolean bedWorks() -
respawnAnchorWorks
public boolean respawnAnchorWorks() -
hasRaids
public boolean hasRaids() -
minY
public int minY() -
height
public int height() -
logicalHeight
public int logicalHeight() -
createDragonFight
public boolean createDragonFight() -
getBiomeZoomer
-
hasFixedTime
public boolean hasFixedTime() -
timeOfDay
public float timeOfDay(long p_63905_) -
moonPhase
public int moonPhase(long p_63937_) -
brightness
public float brightness(int p_63903_) -
infiniburn
-
effectsLocation
-
equalTo
-