Interface Biome
- All Known Subinterfaces:
CustomBiome
- All Known Implementing Classes:
BiomeImpl, CustomBiomeImpl
Represents an abstract biome in Minecraft.
- Since:
- 2.3.0
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Method Summary
Modifier and TypeMethodDescriptionA map of the environment attributes associated with this biome.voidattributes(EnvironmentAttributeMap attributes) Sets the environment attributes for this biome.Gets the biome spawner associated with this biome.voidbiomeSpawner(@Nullable BiomeSpawner biomeSpawner) Sets or removes the BiomeSpawner of this biome.static Biome.Builderbuilder()A new builder for this class.static Biome.Builderbuilder(ResourceKey resourceKey) Gets the Bukkit representation of this biome.Climate settings associated with this biome.voidclimateSettings(ClimateSettings climateSettings) Sets new climate settings for this biome.Gets world generation settings associated with this biome.voidgenerationSettings(@Nullable BiomeGenerationSettings generationSettings) Sets or removes the world generation settings for this biome.booleanCompares this biome to another biome to determine if they are similar.default Biomemodify()Modifies the existing biome in the biome registry with the properties of this CustomBiome.static Biomereference(ResourceKey resourceKey) Gets a reference to a biome from the biome registry.default Biomeregister()Registers this biome in the biome registry.The key associated with this biome.Various biome-specific visuals as they appear in vanilla.voidspecialEffects(BiomeSpecialEffects specialEffects) Sets new special effects for this biome.default Biome.BuilderConverts this back into a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft
-
Method Details
-
resourceKey
The key associated with this biome.- Returns:
- the key of this biome.
- Since:
- 3.0.0
-
climateSettings
Climate settings associated with this biome.- Returns:
- the climate settings associated with this biome.
- Since:
- 3.0.0
-
climateSettings
Sets new climate settings for this biome.- Parameters:
climateSettings- the new climate settings to set for this biome.- Since:
- 3.0.0
-
specialEffects
Various biome-specific visuals as they appear in vanilla.- Returns:
- the biome special effects associated with this biome.
- Since:
- 3.0.0
-
specialEffects
Sets new special effects for this biome.- Parameters:
specialEffects- the new special effects to set for this biome.- Since:
- 3.0.0
-
attributes
A map of the environment attributes associated with this biome.- Returns:
- an environment attribute map populated with the environment attributes of this biome.
- Since:
- 1.1.0
-
attributes
Sets the environment attributes for this biome.- Parameters:
attributes- the environment attribute map to set for this biome- Since:
- 2.2.0
-
biomeSpawner
Gets the biome spawner associated with this biome.- Returns:
- the BiomeSpawner of this biome, or null if none is set.
- Since:
- 2.3.0
-
biomeSpawner
Sets or removes the BiomeSpawner of this biome.- Parameters:
biomeSpawner- the BiomeSpawner to set for this biome, or null to remove it.- Since:
- 2.3.0
-
generationSettings
Gets world generation settings associated with this biome.- Returns:
- the BiomeGenerationSettings of this biome, or null if none is set.
- Since:
- 2.3.0
-
generationSettings
Sets or removes the world generation settings for this biome.- Parameters:
generationSettings- the BiomeGenerationSettings to set for this biome, or null to remove it.- Since:
- 2.3.0
-
isSimilar
Compares this biome to another biome to determine if they are similar. Two AbstractBiomes are considered similar if they have the same properties.- Parameters:
otherBiome- The other AbstractBiome to compare to.- Returns:
- true if the AbstractBiomes are similar, false otherwise.
- Since:
- 0.0.17
-
bukkitBiome
-
register
-
modify
Modifies the existing biome in the biome registry with the properties of this CustomBiome.- Throws:
IllegalArgumentException- if the biome is not registered.- Since:
- 0.0.17
-
toBuilder
Converts this back into a builder.- Returns:
- a builder with the same properties as this biome.
- Since:
- 3.0.0
-
reference
Gets a reference to a biome from the biome registry.- Parameters:
resourceKey- the ResourceKey of the biome to get a reference to- Returns:
- a reference to the biome with the given ResourceKey
- Since:
- 3.0.0
-
builder
A new builder for this class.- Returns:
- a new, empty
Biome.Builder. - Since:
- 2.3.0
-
builder
- Parameters:
resourceKey- the ResourceKey to seed the builder with- Returns:
- a new
Biome.Builderseeded with the given resource key. - Since:
- 2.3.0
-