Class Biome

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

public final class Biome extends Object
  • Field Details Link icon

  • Constructor Details Link icon

  • Method Details Link icon

    • getSkyColor Link icon

      public int getSkyColor()
    • getMobSettings Link icon

      public MobSpawnSettings getMobSettings()
    • hasPrecipitation Link icon

      public boolean hasPrecipitation()
    • getPrecipitationAt Link icon

      public Biome.Precipitation getPrecipitationAt(BlockPos p_265163_)
    • getHeightAdjustedTemperature Link icon

      private float getHeightAdjustedTemperature(BlockPos p_47529_)
    • getTemperature Link icon

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

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

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

      public boolean coldEnoughToSnow(BlockPos p_198905_)
    • warmEnoughToRain Link icon

      public boolean warmEnoughToRain(BlockPos p_198907_)
    • shouldMeltFrozenOceanIcebergSlightly Link icon

      public boolean shouldMeltFrozenOceanIcebergSlightly(BlockPos p_198909_)
    • shouldSnow Link icon

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

      public BiomeGenerationSettings getGenerationSettings()
    • getFogColor Link icon

      public int getFogColor()
    • getGrassColor Link icon

      public int getGrassColor(double p_47465_, double p_47466_)
    • getGrassColorFromTexture Link icon

      private int getGrassColorFromTexture()
    • getFoliageColor Link icon

      public int getFoliageColor()
    • getFoliageColorFromTexture Link icon

      private int getFoliageColorFromTexture()
    • getBaseTemperature Link icon

      public float getBaseTemperature()
    • getSpecialEffects Link icon

      public BiomeSpecialEffects getSpecialEffects()
    • getWaterColor Link icon

      public int getWaterColor()
    • getWaterFogColor Link icon

      public int getWaterFogColor()
    • getAmbientParticle Link icon

      public Optional<AmbientParticleSettings> getAmbientParticle()
    • getAmbientLoop Link icon

      public Optional<Holder<SoundEvent>> getAmbientLoop()
    • getAmbientMood Link icon

      public Optional<AmbientMoodSettings> getAmbientMood()
    • getAmbientAdditions Link icon

      public Optional<AmbientAdditionsSettings> getAmbientAdditions()
    • getBackgroundMusic Link icon

      public Optional<Music> getBackgroundMusic()
    • modifiableBiomeInfo Link icon

      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 Link icon

      public Biome.ClimateSettings getModifiedClimateSettings()
      Returns The biome's climate settings, with modifications if called after modifiers are applied in server init.. Note: This method is called by our field_to_method coremod. Which redirects climateSettings to this method at load time.
      Returns:
      The biome's climate settings, with modifications if called after modifiers are applied in server init.
    • getModifiedSpecialEffects Link icon

      public BiomeSpecialEffects getModifiedSpecialEffects()
      Returns The biome's client effects, with modifications if called after modifiers are applied in server init.. Note: This methods is called by our field_to_method coremod. Which redirects specialEffects to this method at load time.
      Returns:
      The biome's client effects, with modifications if called after modifiers are applied in server init.