Interface Biome

All Superinterfaces:
DataHolder, DefaultedRegistryValue, Taggable<Biome>, ValueContainer

@CatalogedBy(Biomes.class) public interface Biome extends DataHolder, Taggable<Biome>
Represents a biome.
  • Method Details

    • temperature

      default double temperature()
      Gets the temperature of this biome.

      May influence grass and foliage color and SnowGolem temperature damage

      Returns:
      The temperature
    • humidity

      default double humidity()
      Gets the humidity of this biome.

      May influence grass and foliage color and BlockTypes.FIRE blocks burning out faster.

      Returns:
      The humidity
    • precipitation

      default Precipitation precipitation()
      Gets the default type of precipitation in this biome.

      This is determined by Keys.HAS_PRECIPITATION and Keys.BIOME_TEMPERATURE

      Returns:
      The type of precipitation
    • hasPrecipitation

      default boolean hasPrecipitation()
      Gets the type of precipitation in this biome.
      Returns:
      The type of precipitation
    • temperatureModifier

      default TemperatureModifier temperatureModifier()
      Gets the temperature modifier.
      Returns:
      The temperature modifier
    • carvers

      default Map<CarvingStep,List<Carver>> carvers()
      Gets the carvers used in world generation.

      For more details see Carver

      Returns:
      The carvers
    • features

      default Map<DecorationStep,List<PlacedFeature>> features()
      Gets the features used in world generation.

      For more details see PlacedFeature

      Returns:
      The features
    • generationSpawnChance

      default double generationSpawnChance()
      Gets spawn chance during world generation.

      The entity to spawn is picked randomly from spawners() of type EntityCategories.CREATURE

      Returns:
      The spawn chance
    • spawners

      default Map<EntityCategory,List<NaturalSpawner>> spawners()
      Gets the weighted natural spawn settings for each entity category.
      Returns:
      The weighted natural spawners
    • cost

      default Map<EntityType<?>,NaturalSpawnCost> cost()
      Gets the spawn costs.

      Alternative to the mob-cap

      Returns:
      The spawn costs
    • fogColor

      default Color fogColor()
      Gets the fog color.
      Returns:
      The fog color
    • waterColor

      default Color waterColor()
      Gets the water color.
      Returns:
      The water color
    • waterFogColor

      default Color waterFogColor()
      Gets the water fog color.
      Returns:
      The water fog color
    • skyColor

      default Color skyColor()
      Gets the sky color.
      Returns:
      The sky color
    • foliageColor

      default Optional<Color> foliageColor()
      Gets the foliage color override.
      Returns:
      The foliage color override
    • grassColor

      default Optional<Color> grassColor()
      Gets the grass color override.
      Returns:
      The grass color override
    • grassColorModifier

      default GrassColorModifier grassColorModifier()
      Gets the grass color modifier.
      Returns:
      The grass color modifier
    • ambientParticle

      default Optional<ParticleConfig> ambientParticle()
      Gets the ambient particle settings.
      Returns:
      The ambient particle settings
    • ambientSound

      default Optional<SoundType> ambientSound()
      Gets the ambient sound.
      Returns:
      The ambient sound
    • ambientMood

      default Optional<SoundConfig.Mood> ambientMood()
      Gets the ambient mood settings.
      Returns:
      The ambient mood settings
    • additionalAmbientSound

      default Optional<SoundConfig.Additional> additionalAmbientSound()
      Gets the additional ambient sound settings.
      Returns:
      The additional ambient sound settings
    • backgroundMusic

      default Optional<SoundConfig.BackgroundMusic> backgroundMusic()
      Gets the background music settings.
      Returns:
      The background music settings