Class Biome

All Implemented Interfaces:
IForgeRegistryEntry<Biome>

public final class Biome extends ForgeRegistryEntry.UncheckedRegistryEntry<Biome>
  • Field Details

    • LOGGER

      public static final org.apache.logging.log4j.Logger LOGGER
    • 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<Supplier<Biome>> CODEC
    • LIST_CODEC

      public static final com.mojang.serialization.Codec<List<Supplier<Biome>>> LIST_CODEC
    • structuresByStep

      private final Map<Integer,​List<StructureFeature<?>>> structuresByStep
    • TEMPERATURE_NOISE

      private static final PerlinSimplexNoise TEMPERATURE_NOISE
    • FROZEN_TEMPERATURE_NOISE

      static final PerlinSimplexNoise FROZEN_TEMPERATURE_NOISE
    • BIOME_INFO_NOISE

      public static final PerlinSimplexNoise BIOME_INFO_NOISE
    • TEMPERATURE_CACHE_SIZE

      private static final int TEMPERATURE_CACHE_SIZE
      See Also:
      Constant Field Values
    • climateSettings

      private final Biome.ClimateSettings climateSettings
    • generationSettings

      private final BiomeGenerationSettings generationSettings
    • mobSettings

      private final MobSpawnSettings mobSettings
    • depth

      private final float depth
    • scale

      private final float scale
    • biomeCategory

      private final Biome.BiomeCategory biomeCategory
    • specialEffects

      private final BiomeSpecialEffects specialEffects
    • temperatureCache

      private final ThreadLocal<it.unimi.dsi.fastutil.longs.Long2FloatLinkedOpenHashMap> temperatureCache
  • 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

      public final float getTemperature(BlockPos p_47506_)
    • shouldFreeze

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

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

      public boolean isColdEnoughToSnow(BlockPos p_151697_)
    • shouldSnow

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

      public BiomeGenerationSettings getGenerationSettings()
    • generate

      public void generate(StructureFeatureManager p_47485_, ChunkGenerator p_47486_, WorldGenRegion p_47487_, long p_47488_, WorldgenRandom p_47489_, BlockPos p_47490_)
    • 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()
    • buildSurfaceAt

      public void buildSurfaceAt(Random p_151683_, ChunkAccess p_151684_, int p_151685_, int p_151686_, int p_151687_, double p_151688_, BlockState p_151689_, BlockState p_151690_, int p_151691_, int p_151692_, long p_151693_)
    • getDepth

      public final float getDepth()
    • getDownfall

      public final float getDownfall()
    • getScale

      public final float getScale()
    • getBaseTemperature

      public final float getBaseTemperature()
    • getSpecialEffects

      public BiomeSpecialEffects getSpecialEffects()
    • getWaterColor

      public final int getWaterColor()
    • getWaterFogColor

      public final 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()
    • getBiomeCategory

      public final Biome.BiomeCategory getBiomeCategory()
    • toString

      public String toString()
      Overrides:
      toString in class Object