Class Biome
java.lang.Object
net.minecraft.world.level.biome.Biome
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EnvironmentAttributeMapstatic final PerlinSimplexNoiseDeprecated, for removal: This API element is subject to removal in a future version.private final Biome.ClimateSettingsNeo: Field accesses are redirected togetModifiedClimateSettings()with a coremod.private static final PerlinSimplexNoiseprivate final BiomeGenerationSettingsprivate final MobSpawnSettingsprivate final ModifiableBiomeInfoprivate final BiomeSpecialEffectsNeo: Field accesses are redirected togetModifiedSpecialEffects()with a coremod.private static final intprivate static final PerlinSimplexNoiseprivate final ThreadLocal<it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBiome(Biome.ClimateSettings climateSettings, EnvironmentAttributeMap attributes, BiomeSpecialEffects specialEffects, BiomeGenerationSettings generationSettings, MobSpawnSettings mobSettings) -
Method Summary
Modifier and TypeMethodDescriptionbooleancoldEnoughToSnow(BlockPos pos, int seaLevel) private intfloatintprivate intintprivate intintgetGrassColor(double x, double z) private intprivate floatgetHeightAdjustedTemperature(BlockPos pos, int seaLevel) 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 pos, int seaLevel) private floatgetTemperature(BlockPos pos, int seaLevel) Deprecated.intbooleanReturns Cache of original biome data and biome data modified by biome modifiers.booleanshouldFreeze(LevelReader level, BlockPos pos) booleanshouldFreeze(LevelReader level, BlockPos pos, boolean checkNeighbors) booleanshouldMeltFrozenOceanIcebergSlightly(BlockPos pos, int seaLevel) booleanshouldSnow(LevelReader level, BlockPos pos) booleanwarmEnoughToRain(BlockPos pos, int seaLevel)
-
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
Neo: Field accesses are redirected togetModifiedClimateSettings()with a coremod. -
generationSettings
-
mobSettings
-
attributes
-
specialEffects
Neo: Field accesses are redirected togetModifiedSpecialEffects()with a coremod. -
temperatureCache
-
modifiableBiomeInfo
-
-
Constructor Details
-
Biome
private Biome(Biome.ClimateSettings climateSettings, EnvironmentAttributeMap attributes, BiomeSpecialEffects specialEffects, BiomeGenerationSettings generationSettings, MobSpawnSettings mobSettings)
-
-
Method Details
-
getMobSettings
-
hasPrecipitation
public boolean hasPrecipitation() -
getPrecipitationAt
-
getHeightAdjustedTemperature
-
getTemperature
Deprecated. -
shouldFreeze
-
shouldFreeze
-
coldEnoughToSnow
-
warmEnoughToRain
-
shouldMeltFrozenOceanIcebergSlightly
-
shouldSnow
-
getGenerationSettings
-
getGrassColor
public int getGrassColor(double x, double z) -
getBaseGrassColor
private int getBaseGrassColor() -
getGrassColorFromTexture
private int getGrassColorFromTexture() -
getFoliageColor
public int getFoliageColor() -
getFoliageColorFromTexture
private int getFoliageColorFromTexture() -
getDryFoliageColor
public int getDryFoliageColor() -
getDryFoliageColorFromTexture
private int getDryFoliageColorFromTexture() -
getBaseTemperature
public float getBaseTemperature() -
getAttributes
-
getSpecialEffects
-
getWaterColor
public int getWaterColor() -
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.
-