Class CustomBiome.Builder
java.lang.Object
dev.wyck.model.biome.Biome.Builder
dev.wyck.model.biome.CustomBiome.Builder
- Enclosing interface:
CustomBiome
Builder for
CustomBiome. Configures every property the base biome exposes plus block replacements.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattribute(EnvironmentAttributeSupplier<V> attribute, @Nullable V value) attribute(FriendlyColorSupplier attribute, @Nullable String hex) attributes(EnvironmentAttributeMap attributeMap) Sets the environment attributes of the custom biome.biomeSpawner(@Nullable BiomeSpawner biomeSpawner) Sets the BiomeSpawner of the custom biome.blockReplacements(BlockReplacement... blockReplacements) Sets the block replacements of the custom biome.blockReplacements(Collection<BlockReplacement> blockReplacements) Sets the block replacements of the custom biome.build()Builds the custom biome.climateSettings(ClimateSettings climateSettings) Sets the climate settings of the custom biome.dryFoliageColor(@Nullable String dryFoliageColor) foliageColor(@Nullable String foliageColor) generationSettings(@Nullable BiomeGenerationSettings generationSettings) Sets the generation settings of the custom biome.grassColor(@Nullable String grassColor) grassColorModifier(GrassColorModifier grassColorModifier) modify()particle(ParticleTypes type, float probability) particle(ParticleTypes type, float probability, @Nullable ParticleData data) register()replace(BlockReplacement replacement) Adds a block replacement to the custom biome.Adds a block replacement to the custom biome.resourceKey(ResourceKey resourceKey) Sets the ResourceKey of the custom biome.settings(BiomeSettings settings) specialEffects(BiomeSpecialEffects specialEffects) Sets the special effects of the custom biome.waterColor(String waterColor) waterFogColor(@Nullable String waterFogColor) Methods inherited from class Biome.Builder
spawner
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
resourceKey
Sets the ResourceKey of the custom biome.- Overrides:
resourceKeyin classBiome.Builder- Parameters:
resourceKey- the ResourceKey of the custom biome- Returns:
- this builder
-
climateSettings
Sets the climate settings of the custom biome.- Overrides:
climateSettingsin classBiome.Builder- Parameters:
climateSettings- the climate settings of the custom biome- Returns:
- this builder
- Since:
- 3.0.0
-
specialEffects
Sets the special effects of the custom biome.- Overrides:
specialEffectsin classBiome.Builder- Parameters:
specialEffects- the special effects of the custom biome- Returns:
- this builder
- Since:
- 3.0.0
-
attributes
Sets the environment attributes of the custom biome.- Overrides:
attributesin classBiome.Builder- Parameters:
attributeMap- the environment attributes of the custom biome- Returns:
- this builder
- Since:
- 3.0.0
-
biomeSpawner
Sets the BiomeSpawner of the custom biome.- Overrides:
biomeSpawnerin classBiome.Builder- Parameters:
biomeSpawner- the BiomeSpawner of the custom biome, or null to remove it- Returns:
- this builder
- Since:
- 2.3.0
-
generationSettings
Sets the generation settings of the custom biome.- Overrides:
generationSettingsin classBiome.Builder- Parameters:
generationSettings- the generation settings of the custom biome, or null to remove it- Returns:
- this builder
- Since:
- 2.3.0
-
waterColor
-
foliageColor
-
dryFoliageColor
-
grassColor
-
grassColorModifier
-
waterFogColor
-
fogColor
-
skyColor
-
particle
@AsOf("3.0.0") public CustomBiome.Builder particle(ParticleTypes type, float probability, @Nullable ParticleData data) -
particle
-
settings
-
attribute
@AsOf("3.0.0") public <V> CustomBiome.Builder attribute(EnvironmentAttributeSupplier<V> attribute, @Nullable V value) - Overrides:
attributein classBiome.Builder
-
attribute
@AsOf("3.0.0") public CustomBiome.Builder attribute(FriendlyColorSupplier attribute, @Nullable String hex) - Overrides:
attributein classBiome.Builder
-
blockReplacements
Sets the block replacements of the custom biome.- Parameters:
blockReplacements- the block replacements of the custom biome- Returns:
- this builder
- Since:
- 0.0.6
-
blockReplacements
@AsOf("3.0.0") public CustomBiome.Builder blockReplacements(Collection<BlockReplacement> blockReplacements) Sets the block replacements of the custom biome.- Parameters:
blockReplacements- the block replacements of the custom biome- Returns:
- this builder
- Since:
- 2.1.0
-
replace
Adds a block replacement to the custom biome.- Parameters:
from- the block material to be replacedto- the replacement block material- Returns:
- this builder
- Since:
- 2.1.0
-
replace
Adds a block replacement to the custom biome.- Parameters:
replacement- the block replacement to add- Returns:
- this builder
- Since:
- 2.1.0
-
build
Builds the custom biome.- Overrides:
buildin classBiome.Builder- Returns:
- a new custom biome
- Throws:
IllegalArgumentException- if the resource key is not set- Since:
- 3.0.0
-
register
- Overrides:
registerin classBiome.Builder
-
modify
- Overrides:
modifyin classBiome.Builder
-