Package net.minecraft.world
Class DimensionType
- java.lang.Object
-
- net.minecraft.world.DimensionType
-
public class DimensionType extends java.lang.Object
-
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
DimensionType(java.util.OptionalLong p_i241973_1_, boolean p_i241973_2_, boolean p_i241973_3_, boolean p_i241973_4_, boolean p_i241973_5_, double p_i241973_6_, boolean p_i241973_8_, boolean p_i241973_9_, boolean p_i241973_10_, boolean p_i241973_11_, boolean p_i241973_12_, int p_i241973_13_, IBiomeMagnifier p_i241973_14_, ResourceLocation p_i241973_15_, ResourceLocation p_i241973_16_, float p_i241973_17_)
protected
DimensionType(java.util.OptionalLong p_i241972_1_, boolean p_i241972_2_, boolean p_i241972_3_, boolean p_i241972_4_, boolean p_i241972_5_, double p_i241972_6_, boolean p_i241972_8_, boolean p_i241972_9_, boolean p_i241972_10_, boolean p_i241972_11_, int p_i241972_12_, ResourceLocation p_i241972_13_, ResourceLocation p_i241972_14_, float p_i241972_15_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
bedWorks()
float
brightness(int p_236021_1_)
double
coordinateScale()
boolean
createDragonFight()
static SimpleRegistry<Dimension>
defaultDimensions(Registry<DimensionType> p_242718_0_, Registry<Biome> p_242718_1_, Registry<DimensionSettings> p_242718_2_, long p_242718_3_)
private static ChunkGenerator
defaultEndGenerator(Registry<Biome> p_242717_0_, Registry<DimensionSettings> p_242717_1_, long p_242717_2_)
private static ChunkGenerator
defaultNetherGenerator(Registry<Biome> p_242720_0_, Registry<DimensionSettings> p_242720_1_, long p_242720_2_)
ResourceLocation
effectsLocation()
boolean
equalTo(DimensionType p_242714_1_)
private static float[]
fillBrightnessRamp(float p_236020_0_)
IBiomeMagnifier
getBiomeZoomer()
java.lang.String
getFileSuffix()
Deprecated.static java.io.File
getStorageFolder(RegistryKey<World> p_236031_0_, java.io.File p_236031_1_)
static double
getTeleportationScale(DimensionType p_242715_0_, DimensionType p_242715_1_)
boolean
hasCeiling()
boolean
hasFixedTime()
boolean
hasRaids()
boolean
hasSkyLight()
ITag<Block>
infiniburn()
int
logicalHeight()
int
moonPhase(long p_236035_1_)
boolean
natural()
static com.mojang.serialization.DataResult<RegistryKey<World>>
parseLegacy(com.mojang.serialization.Dynamic<?> p_236025_0_)
Deprecated.boolean
piglinSafe()
static DynamicRegistries.Impl
registerBuiltin(DynamicRegistries.Impl p_236027_0_)
boolean
respawnAnchorWorks()
float
timeOfDay(long p_236032_1_)
boolean
ultraWarm()
-
-
-
Field Detail
-
OVERWORLD_EFFECTS
public static final ResourceLocation OVERWORLD_EFFECTS
-
NETHER_EFFECTS
public static final ResourceLocation NETHER_EFFECTS
-
END_EFFECTS
public static final ResourceLocation END_EFFECTS
-
DIRECT_CODEC
public static final com.mojang.serialization.Codec<DimensionType> DIRECT_CODEC
-
MOON_BRIGHTNESS_PER_PHASE
public static final float[] MOON_BRIGHTNESS_PER_PHASE
-
OVERWORLD_LOCATION
public static final RegistryKey<DimensionType> OVERWORLD_LOCATION
-
NETHER_LOCATION
public static final RegistryKey<DimensionType> NETHER_LOCATION
-
END_LOCATION
public static final RegistryKey<DimensionType> END_LOCATION
-
DEFAULT_OVERWORLD
protected static final DimensionType DEFAULT_OVERWORLD
-
DEFAULT_NETHER
protected static final DimensionType DEFAULT_NETHER
-
DEFAULT_END
protected static final DimensionType DEFAULT_END
-
OVERWORLD_CAVES_LOCATION
public static final RegistryKey<DimensionType> OVERWORLD_CAVES_LOCATION
-
DEFAULT_OVERWORLD_CAVES
protected static final DimensionType DEFAULT_OVERWORLD_CAVES
-
CODEC
public static final com.mojang.serialization.Codec<java.util.function.Supplier<DimensionType>> CODEC
-
fixedTime
private final java.util.OptionalLong 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
-
logicalHeight
private final int logicalHeight
-
biomeZoomer
private final IBiomeMagnifier biomeZoomer
-
infiniburn
private final ResourceLocation infiniburn
-
effectsLocation
private final ResourceLocation effectsLocation
-
ambientLight
private final float ambientLight
-
brightnessRamp
private final transient float[] brightnessRamp
-
-
Constructor Detail
-
DimensionType
protected DimensionType(java.util.OptionalLong p_i241972_1_, boolean p_i241972_2_, boolean p_i241972_3_, boolean p_i241972_4_, boolean p_i241972_5_, double p_i241972_6_, boolean p_i241972_8_, boolean p_i241972_9_, boolean p_i241972_10_, boolean p_i241972_11_, int p_i241972_12_, ResourceLocation p_i241972_13_, ResourceLocation p_i241972_14_, float p_i241972_15_)
-
DimensionType
protected DimensionType(java.util.OptionalLong p_i241973_1_, boolean p_i241973_2_, boolean p_i241973_3_, boolean p_i241973_4_, boolean p_i241973_5_, double p_i241973_6_, boolean p_i241973_8_, boolean p_i241973_9_, boolean p_i241973_10_, boolean p_i241973_11_, boolean p_i241973_12_, int p_i241973_13_, IBiomeMagnifier p_i241973_14_, ResourceLocation p_i241973_15_, ResourceLocation p_i241973_16_, float p_i241973_17_)
-
-
Method Detail
-
fillBrightnessRamp
private static float[] fillBrightnessRamp(float p_236020_0_)
-
parseLegacy
@Deprecated public static com.mojang.serialization.DataResult<RegistryKey<World>> parseLegacy(com.mojang.serialization.Dynamic<?> p_236025_0_)
Deprecated.
-
registerBuiltin
public static DynamicRegistries.Impl registerBuiltin(DynamicRegistries.Impl p_236027_0_)
-
defaultEndGenerator
private static ChunkGenerator defaultEndGenerator(Registry<Biome> p_242717_0_, Registry<DimensionSettings> p_242717_1_, long p_242717_2_)
-
defaultNetherGenerator
private static ChunkGenerator defaultNetherGenerator(Registry<Biome> p_242720_0_, Registry<DimensionSettings> p_242720_1_, long p_242720_2_)
-
defaultDimensions
public static SimpleRegistry<Dimension> defaultDimensions(Registry<DimensionType> p_242718_0_, Registry<Biome> p_242718_1_, Registry<DimensionSettings> p_242718_2_, long p_242718_3_)
-
getTeleportationScale
public static double getTeleportationScale(DimensionType p_242715_0_, DimensionType p_242715_1_)
-
getFileSuffix
@Deprecated public java.lang.String getFileSuffix()
Deprecated.
-
getStorageFolder
public static java.io.File getStorageFolder(RegistryKey<World> p_236031_0_, java.io.File p_236031_1_)
-
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()
-
logicalHeight
public int logicalHeight()
-
createDragonFight
public boolean createDragonFight()
-
getBiomeZoomer
public IBiomeMagnifier getBiomeZoomer()
-
hasFixedTime
public boolean hasFixedTime()
-
timeOfDay
public float timeOfDay(long p_236032_1_)
-
moonPhase
public int moonPhase(long p_236035_1_)
-
brightness
public float brightness(int p_236021_1_)
-
effectsLocation
public ResourceLocation effectsLocation()
-
equalTo
public boolean equalTo(DimensionType p_242714_1_)
-
-