Class SpeleothemConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.SpeleothemConfiguration.Builder
- Enclosing interface:
SpeleothemConfiguration
Builder for
SpeleothemConfiguration.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the base block.Sets the block state.build()Builds the configuration.chanceOfDirectionalSpread(float chanceOfDirectionalSpread) Sets the chance of horizontal spread.chanceOfSpreadRadius2(float chanceOfSpreadRadius2) Sets the chance of horizontal spread by two blocks.chanceOfSpreadRadius3(float chanceOfSpreadRadius3) Sets the chance of spreading the third block.chanceOfTallerGeneration(float chanceOfTallerGeneration) Sets the chance of double-block dripstone.pointedBlock(BlockData pointedBlock) Sets the pointed block.pointedBlock(Material material) Sets the block state.replaceableBlock(Material... materials) Adds the given block states to the replaceable blocks.replaceableBlocks(Set<Material> replaceableBlocks) Sets the replaceable blocks.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
baseBlock
Sets the base block.- Parameters:
baseBlock- the base block- Returns:
- this builder
- Since:
- 3.0.0
-
pointedBlock
Sets the pointed block.- Parameters:
pointedBlock- the pointed block- Returns:
- this builder
- Since:
- 3.0.0
-
replaceableBlocks
@AsOf("3.0.0") public SpeleothemConfiguration.Builder replaceableBlocks(Set<Material> replaceableBlocks) Sets the replaceable blocks.- Parameters:
replaceableBlocks- the replaceable blocks- Returns:
- this builder
- Since:
- 3.0.0
-
chanceOfTallerGeneration
@AsOf("3.0.0") public SpeleothemConfiguration.Builder chanceOfTallerGeneration(float chanceOfTallerGeneration) Sets the chance of double-block dripstone.- Parameters:
chanceOfTallerGeneration- the chance of double-block dripstone- Returns:
- this builder
- Since:
- 3.0.0
-
chanceOfDirectionalSpread
@AsOf("3.0.0") public SpeleothemConfiguration.Builder chanceOfDirectionalSpread(float chanceOfDirectionalSpread) Sets the chance of horizontal spread.- Parameters:
chanceOfDirectionalSpread- the chance of horizontal spread- Returns:
- this builder
- Since:
- 3.0.0
-
chanceOfSpreadRadius2
@AsOf("3.0.0") public SpeleothemConfiguration.Builder chanceOfSpreadRadius2(float chanceOfSpreadRadius2) Sets the chance of horizontal spread by two blocks.- Parameters:
chanceOfSpreadRadius2- the chance of horizontal spread by two blocks- Returns:
- this builder
- Since:
- 3.0.0
-
chanceOfSpreadRadius3
@AsOf("3.0.0") public SpeleothemConfiguration.Builder chanceOfSpreadRadius3(float chanceOfSpreadRadius3) Sets the chance of spreading the third block.- Parameters:
chanceOfSpreadRadius3- the chance of spreading the third block- Returns:
- this builder
- Since:
- 3.0.0
-
baseBlock
Sets the block state.- Parameters:
material- the material to derive the block state from- Returns:
- this builder
- Since:
- 3.0.0
-
pointedBlock
Sets the block state.- Parameters:
material- the material to derive the block state from- Returns:
- this builder
- Since:
- 3.0.0
-
replaceableBlock
Adds the given block states to the replaceable blocks.- Parameters:
materials- the block states to add- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the configuration.- Returns:
- the configuration
- Since:
- 3.0.0
-