Package net.minecraft.world.level.biome
Class Biome
java.lang.Object
net.minecraft.world.level.biome.Biome
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final record
static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PerlinSimplexNoise
Deprecated, for removal: This API element is subject to removal in a future version.private final Biome.ClimateSettings
static final com.mojang.serialization.Codec<Biome>
(package private) static final PerlinSimplexNoise
private final BiomeGenerationSettings
private final MobSpawnSettings
private final ModifiableBiomeInfo
static final com.mojang.serialization.Codec<Biome>
private final BiomeSpecialEffects
private static final int
private static final PerlinSimplexNoise
private final ThreadLocal<it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap>
-
Constructor Summary
ConstructorDescriptionBiome
(Biome.ClimateSettings p_220530_, BiomeSpecialEffects p_220531_, BiomeGenerationSettings p_220532_, MobSpawnSettings p_220533_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
coldEnoughToSnow
(BlockPos p_198905_) float
int
int
private int
int
getGrassColor
(double p_47465_, double p_47466_) private int
private float
getHeightAdjustedTemperature
(BlockPos p_47529_) Returns The biome's climate settings, with modifications if called after modifiers are applied in server init..Returns The biome's client effects, with modifications if called after modifiers are applied in server init..getPrecipitationAt
(BlockPos p_265163_) int
private float
getTemperature
(BlockPos p_47506_) Deprecated.int
int
boolean
Returns Cache of original biome data and biome data modified by biome modifiers.boolean
shouldFreeze
(LevelReader p_47478_, BlockPos p_47479_) boolean
shouldFreeze
(LevelReader p_47481_, BlockPos p_47482_, boolean p_47483_) boolean
shouldMeltFrozenOceanIcebergSlightly
(BlockPos p_198909_) boolean
shouldSnow
(LevelReader p_47520_, BlockPos p_47521_) boolean
warmEnoughToRain
(BlockPos p_198907_)
-
Field Details
-
DIRECT_CODEC
-
NETWORK_CODEC
-
CODEC
-
LIST_CODEC
-
TEMPERATURE_NOISE
-
FROZEN_TEMPERATURE_NOISE
-
BIOME_INFO_NOISE
Deprecated, for removal: This API element is subject to removal in a future version. -
TEMPERATURE_CACHE_SIZE
private static final int TEMPERATURE_CACHE_SIZE- See Also:
-
climateSettings
-
generationSettings
-
mobSettings
-
specialEffects
-
temperatureCache
-
modifiableBiomeInfo
-
-
Constructor Details
-
Biome
Biome(Biome.ClimateSettings p_220530_, BiomeSpecialEffects p_220531_, BiomeGenerationSettings p_220532_, MobSpawnSettings p_220533_)
-
-
Method Details
-
getSkyColor
public int getSkyColor() -
getMobSettings
-
hasPrecipitation
public boolean hasPrecipitation() -
getPrecipitationAt
-
getHeightAdjustedTemperature
-
getTemperature
Deprecated. -
shouldFreeze
-
shouldFreeze
-
coldEnoughToSnow
-
warmEnoughToRain
-
shouldMeltFrozenOceanIcebergSlightly
-
shouldSnow
-
getGenerationSettings
-
getFogColor
public int getFogColor() -
getGrassColor
public int getGrassColor(double p_47465_, double p_47466_) -
getGrassColorFromTexture
private int getGrassColorFromTexture() -
getFoliageColor
public int getFoliageColor() -
getFoliageColorFromTexture
private int getFoliageColorFromTexture() -
getBaseTemperature
public float getBaseTemperature() -
getSpecialEffects
-
getWaterColor
public int getWaterColor() -
getWaterFogColor
public int getWaterFogColor() -
getAmbientParticle
-
getAmbientLoop
-
getAmbientMood
-
getAmbientAdditions
-
getBackgroundMusic
-
modifiableBiomeInfo
Returns Cache of original biome data and biome data modified by biome modifiers. Modified biome data is set by server after datapacks and serverconfigs load. Climate and effects field reads are coremodded to redirect to this.- Returns:
- Cache of original biome data and biome data modified by biome modifiers
-
getModifiedClimateSettings
Returns The biome's climate settings, with modifications if called after modifiers are applied in server init..- Returns:
- The biome's climate settings, with modifications if called after modifiers are applied in server init.
-
getModifiedSpecialEffects
Returns The biome's client effects, with modifications if called after modifiers are applied in server init..- Returns:
- The biome's client effects, with modifications if called after modifiers are applied in server init.
-