Class Biome.Builder
java.lang.Object
dev.wyck.model.biome.Biome.Builder
- Direct Known Subclasses:
CustomBiome.Builder
- Enclosing interface:
Biome
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> Biome.Builderattribute(EnvironmentAttributeSupplier<V> attribute, @Nullable V value) attribute(FriendlyColorSupplier attribute, @Nullable String hex) attributes(EnvironmentAttributeMap attributeMap) Sets the environment attributes of the biome.biomeSpawner(@Nullable BiomeSpawner biomeSpawner) Sets the BiomeSpawner of the biome.build()Builds the biome.climateSettings(ClimateSettings climateSettings) Sets the climate settings of the biome.generationSettings(@Nullable BiomeGenerationSettings generationSettings) Sets the generation settings of the biome.modify()register()resourceKey(ResourceKey resourceKey) Sets the ResourceKey of the biome.spawner(BiomeSpawner spawner) specialEffects(BiomeSpecialEffects specialEffects) Sets the special effects of the biome.
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
resourceKey
Sets the ResourceKey of the biome.- Parameters:
resourceKey- the ResourceKey of the biome- Returns:
- this builder
-
climateSettings
Sets the climate settings of the biome.- Parameters:
climateSettings- the climate settings of the biome- Returns:
- this builder
- Since:
- 3.0.0
-
specialEffects
Sets the special effects of the biome.- Parameters:
specialEffects- the special effects of the biome- Returns:
- this builder
- Since:
- 3.0.0
-
attributes
Sets the environment attributes of the biome.- Parameters:
attributeMap- the environment attributes of the biome- Returns:
- this builder
- Since:
- 3.0.0
-
biomeSpawner
Sets the BiomeSpawner of the biome.- Parameters:
biomeSpawner- the BiomeSpawner of the biome, or null to remove it- Returns:
- this builder
- Since:
- 2.3.0
-
generationSettings
Sets the generation settings of the biome.- Parameters:
generationSettings- the generation settings of the biome, or null to remove it- Returns:
- this builder
- Since:
- 2.3.0
-
attribute
@AsOf("3.0.0") public <V> Biome.Builder attribute(EnvironmentAttributeSupplier<V> attribute, @Nullable V value) -
attribute
@AsOf("3.0.0") public Biome.Builder attribute(FriendlyColorSupplier attribute, @Nullable String hex) -
spawner
-
build
Builds the biome.- Returns:
- a new biome
- Throws:
IllegalArgumentException- if the resource key is not set- Since:
- 2.3.0
-
register
-
modify
-