Class SpringConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.SpringConfiguration.Builder
- Enclosing interface:
SpringConfiguration
Builder for
SpringConfiguration.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuration.holeCount(int holeCount) Sets the hole count.requiresBlockBelow(boolean requiresBlockBelow) Sets whether the spring requires a block below it.rockCount(int rockCount) Sets the rock count.state(FluidState state) Sets the fluid state.validBlock(Material... validBlocks) Adds a valid block.validBlocks(Set<Material> validBlocks) Sets the valid blocks.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
state
Sets the fluid state.- Parameters:
state- the fluid state- Returns:
- this builder
- Since:
- 3.0.0
-
requiresBlockBelow
Sets whether the spring requires a block below it.- Parameters:
requiresBlockBelow- whether the spring requires a block below it- Returns:
- this builder
- Since:
- 3.0.0
-
rockCount
Sets the rock count.- Parameters:
rockCount- the number of blocks adjacent to the spring- Returns:
- this builder
- Since:
- 3.0.0
-
holeCount
Sets the hole count.- Parameters:
holeCount- the number of air blocks adjacent to the spring- Returns:
- this builder
- Since:
- 3.0.0
-
validBlocks
Sets the valid blocks.- Parameters:
validBlocks- the valid blocks- Returns:
- this builder
- Since:
- 3.0.0
-
validBlock
Adds a valid block.- Parameters:
validBlocks- the valid blocks- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the configuration.- Returns:
- the configuration
- Since:
- 3.0.0
-