Package net.minecraft.world.level.biome
Class Biome
java.lang.Object
net.minecraft.world.level.biome.Biome
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic final recordstatic enumstatic enum
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final PerlinSimplexNoiseDeprecated, for removal: This API element is subject to removal in a future version.private final Biome.ClimateSettingsstatic final com.mojang.serialization.Codec<Biome>(package private) static final PerlinSimplexNoiseprivate final BiomeGenerationSettingsprivate final MobSpawnSettingsprivate final ModifiableBiomeInfostatic final com.mojang.serialization.Codec<Biome>private final BiomeSpecialEffectsprivate static final intprivate static final PerlinSimplexNoiseprivate final ThreadLocal<it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap>
- 
Constructor SummaryConstructorsConstructorDescriptionBiome(Biome.ClimateSettings p_220530_, BiomeSpecialEffects p_220531_, BiomeGenerationSettings p_220532_, MobSpawnSettings p_220533_) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancoldEnoughToSnow(BlockPos p_198905_) floatintintprivate intintgetGrassColor(double p_47465_, double p_47466_) private intprivate floatgetHeightAdjustedTemperature(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_) intprivate floatgetTemperature(BlockPos p_47506_) Deprecated.intintbooleanReturns Cache of original biome data and biome data modified by biome modifiers.booleanshouldFreeze(LevelReader p_47478_, BlockPos p_47479_) booleanshouldFreeze(LevelReader p_47481_, BlockPos p_47482_, boolean p_47483_) booleanshouldMeltFrozenOceanIcebergSlightly(BlockPos p_198909_) booleanshouldSnow(LevelReader p_47520_, BlockPos p_47521_) booleanwarmEnoughToRain(BlockPos p_198907_) 
- 
Field Details- 
DIRECT_CODEC
- 
NETWORK_CODEC
- 
CODEC
- 
LIST_CODEC
- 
TEMPERATURE_NOISE
- 
FROZEN_TEMPERATURE_NOISE
- 
BIOME_INFO_NOISEDeprecated, for removal: This API element is subject to removal in a future version.
- 
TEMPERATURE_CACHE_SIZEprivate static final int TEMPERATURE_CACHE_SIZE- See Also:
 
- 
climateSettings
- 
generationSettings
- 
mobSettings
- 
specialEffects
- 
temperatureCache
- 
modifiableBiomeInfo
 
- 
- 
Constructor Details- 
BiomeBiome(Biome.ClimateSettings p_220530_, BiomeSpecialEffects p_220531_, BiomeGenerationSettings p_220532_, MobSpawnSettings p_220533_) 
 
- 
- 
Method Details- 
getSkyColorpublic int getSkyColor()
- 
getMobSettings
- 
hasPrecipitationpublic boolean hasPrecipitation()
- 
getPrecipitationAt
- 
getHeightAdjustedTemperature
- 
getTemperatureDeprecated.
- 
shouldFreeze
- 
shouldFreeze
- 
coldEnoughToSnow
- 
warmEnoughToRain
- 
shouldMeltFrozenOceanIcebergSlightly
- 
shouldSnow
- 
getGenerationSettings
- 
getFogColorpublic int getFogColor()
- 
getGrassColorpublic int getGrassColor(double p_47465_, double p_47466_) 
- 
getGrassColorFromTextureprivate int getGrassColorFromTexture()
- 
getFoliageColorpublic int getFoliageColor()
- 
getFoliageColorFromTextureprivate int getFoliageColorFromTexture()
- 
getBaseTemperaturepublic float getBaseTemperature()
- 
getSpecialEffects
- 
getWaterColorpublic int getWaterColor()
- 
getWaterFogColorpublic int getWaterFogColor()
- 
getAmbientParticle
- 
getAmbientLoop
- 
getAmbientMood
- 
getAmbientAdditions
- 
getBackgroundMusic
- 
modifiableBiomeInfoReturns 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
 
- 
getModifiedClimateSettingsReturns 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.
 
- 
getModifiedSpecialEffectsReturns 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.
 
 
-