Class Biome

java.lang.Object
net.minecraft.world.level.biome.Biome

public final class Biome extends Object
  • Field Details

    • DIRECT_CODEC

      public static final com.mojang.serialization.Codec<Biome> DIRECT_CODEC
    • NETWORK_CODEC

      public static final com.mojang.serialization.Codec<Biome> NETWORK_CODEC
    • CODEC

      public static final com.mojang.serialization.Codec<Holder<Biome>> CODEC
    • LIST_CODEC

      public static final com.mojang.serialization.Codec<HolderSet<Biome>> LIST_CODEC
    • TEMPERATURE_NOISE

      private static final PerlinSimplexNoise TEMPERATURE_NOISE
    • FROZEN_TEMPERATURE_NOISE

      static final PerlinSimplexNoise FROZEN_TEMPERATURE_NOISE
    • BIOME_INFO_NOISE

      @Deprecated(forRemoval=true) public static final PerlinSimplexNoise 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

      private final Biome.ClimateSettings climateSettings
    • generationSettings

      private final BiomeGenerationSettings generationSettings
    • mobSettings

      private final MobSpawnSettings mobSettings
    • specialEffects

      private final BiomeSpecialEffects specialEffects
    • temperatureCache

      private final ThreadLocal<it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap> temperatureCache
    • modifiableBiomeInfo

      private final ModifiableBiomeInfo modifiableBiomeInfo
  • Constructor Details

  • Method Details

    • getSkyColor

      public int getSkyColor()
    • getMobSettings

      public MobSpawnSettings getMobSettings()
    • getPrecipitation

      public Biome.Precipitation getPrecipitation()
    • isHumid

      public boolean isHumid()
    • getHeightAdjustedTemperature

      private float getHeightAdjustedTemperature(BlockPos p_47529_)
    • getTemperature

      @Deprecated private float getTemperature(BlockPos p_47506_)
      Deprecated.
    • shouldFreeze

      public boolean shouldFreeze(LevelReader p_47478_, BlockPos p_47479_)
    • shouldFreeze

      public boolean shouldFreeze(LevelReader p_47481_, BlockPos p_47482_, boolean p_47483_)
    • coldEnoughToSnow

      public boolean coldEnoughToSnow(BlockPos p_198905_)
    • warmEnoughToRain

      public boolean warmEnoughToRain(BlockPos p_198907_)
    • shouldMeltFrozenOceanIcebergSlightly

      public boolean shouldMeltFrozenOceanIcebergSlightly(BlockPos p_198909_)
    • shouldSnowGolemBurn

      public boolean shouldSnowGolemBurn(BlockPos p_198911_)
    • shouldSnow

      public boolean shouldSnow(LevelReader p_47520_, BlockPos p_47521_)
    • getGenerationSettings

      public BiomeGenerationSettings 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()
    • getDownfall

      public float getDownfall()
    • getBaseTemperature

      public float getBaseTemperature()
    • getSpecialEffects

      public BiomeSpecialEffects getSpecialEffects()
    • getWaterColor

      public int getWaterColor()
    • getWaterFogColor

      public int getWaterFogColor()
    • getAmbientParticle

      public Optional<AmbientParticleSettings> getAmbientParticle()
    • getAmbientLoop

      public Optional<SoundEvent> getAmbientLoop()
    • getAmbientMood

      public Optional<AmbientMoodSettings> getAmbientMood()
    • getAmbientAdditions

      public Optional<AmbientAdditionsSettings> getAmbientAdditions()
    • getBackgroundMusic

      public Optional<Music> getBackgroundMusic()
    • modifiableBiomeInfo

      public ModifiableBiomeInfo 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

      public Biome.ClimateSettings 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

      public BiomeSpecialEffects 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.