Interface Biome
- All Superinterfaces:
DataHolder
,DefaultedRegistryValue
,Taggable<Biome>
,ValueContainer
Represents a biome.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.data.DataHolder
DataHolder.Immutable<I extends DataHolder.Immutable<I>>, DataHolder.Mutable
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<SoundConfig.Additional>
Gets the additional ambient sound settings.default Optional<SoundConfig.Mood>
Gets the ambient mood settings.default Optional<ParticleConfig>
Gets the ambient particle settings.Gets the ambient sound.default Optional<SoundConfig.BackgroundMusic>
Gets the background music settings.default Map<CarvingStep,
List<Carver>> carvers()
Gets the carvers used in world generation.default Map<EntityType<?>,
NaturalSpawnCost> cost()
Gets the spawn costs.default Map<DecorationStep,
List<PlacedFeature>> features()
Gets the features used in world generation.default Color
fogColor()
Gets the fog color.Gets the foliage color override.default double
Gets spawn chance during world generation.Gets the grass color override.default GrassColorModifier
Gets the grass color modifier.default boolean
Gets the type of precipitation in this biome.default double
humidity()
Gets the humidity of this biome.default Precipitation
Gets the default type of precipitation in this biome.default Color
skyColor()
Gets the sky color.default Map<EntityCategory,
List<NaturalSpawner>> spawners()
Gets the weighted natural spawn settings for each entity category.default double
Gets the temperature of this biome.default TemperatureModifier
Gets the temperature modifier.default Color
Gets the water color.default Color
Gets the water fog color.Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
Methods inherited from interface org.spongepowered.api.tag.Taggable
is, registryType, tags
-
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
Gets the default type of precipitation in this biome.This is determined by
Keys.HAS_PRECIPITATION
andKeys.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
Gets the temperature modifier.- Returns:
- The temperature modifier
-
carvers
Gets the carvers used in world generation.For more details see
Carver
- Returns:
- The carvers
-
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 typeEntityCategories.CREATURE
- Returns:
- The spawn chance
-
spawners
Gets the weighted natural spawn settings for each entity category.- Returns:
- The weighted natural spawners
-
cost
Gets the spawn costs.Alternative to the mob-cap
- Returns:
- The spawn costs
-
fogColor
Gets the fog color.- Returns:
- The fog color
-
waterColor
Gets the water color.- Returns:
- The water color
-
waterFogColor
Gets the water fog color.- Returns:
- The water fog color
-
skyColor
Gets the sky color.- Returns:
- The sky color
-
foliageColor
Gets the foliage color override.- Returns:
- The foliage color override
-
grassColor
Gets the grass color override.- Returns:
- The grass color override
-
grassColorModifier
Gets the grass color modifier.- Returns:
- The grass color modifier
-
ambientParticle
Gets the ambient particle settings.- Returns:
- The ambient particle settings
-
ambientSound
Gets the ambient sound.- Returns:
- The ambient sound
-
ambientMood
Gets the ambient mood settings.- Returns:
- The ambient mood settings
-
additionalAmbientSound
Gets the additional ambient sound settings.- Returns:
- The additional ambient sound settings
-
backgroundMusic
Gets the background music settings.- Returns:
- The background music settings
-