Class MultifaceGrowthConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.MultifaceGrowthConfiguration.Builder
- Enclosing interface:
MultifaceGrowthConfiguration
Builder for
MultifaceGrowthConfiguration.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuration.canBePlacedOn(Set<Material> canBePlacedOn) Sets the materials that the block can be placed on.canBePlacedOn(Material... canBePlacedOn) Adds materials to the set of materials that the block can be placed on.Allows the block to be placed on the ceiling.canPlaceOnCeiling(boolean canPlaceOnCeiling) Sets whether the block can be placed on the ceiling.Allows the block to be placed on the floor.canPlaceOnFloor(boolean canPlaceOnFloor) Sets whether the block can be placed on the floor.Allows the block to be placed on the wall.canPlaceOnWall(boolean canPlaceOnWall) Sets whether the block can be placed on the wall.chanceOfSpreading(float chanceOfSpreading) Sets the chance of the block spreading.placeBlock(Material placeBlock) Sets the block to place.searchRange(int searchRange) Sets the search range.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
placeBlock
Sets the block to place.- Parameters:
placeBlock- the block to place- Returns:
- this builder
- Since:
- 3.0.0
-
searchRange
Sets the search range.- Parameters:
searchRange- the search range- Returns:
- this builder
- Since:
- 3.0.0
-
canPlaceOnFloor
Sets whether the block can be placed on the floor.- Parameters:
canPlaceOnFloor- whether the block can be placed on the floor- Returns:
- this builder
- Since:
- 3.0.0
-
canPlaceOnCeiling
@AsOf("3.0.0") public MultifaceGrowthConfiguration.Builder canPlaceOnCeiling(boolean canPlaceOnCeiling) Sets whether the block can be placed on the ceiling.- Parameters:
canPlaceOnCeiling- whether the block can be placed on the ceiling- Returns:
- this builder
- Since:
- 3.0.0
-
canPlaceOnWall
Sets whether the block can be placed on the wall.- Parameters:
canPlaceOnWall- whether the block can be placed on the wall- Returns:
- this builder
- Since:
- 3.0.0
-
chanceOfSpreading
@AsOf("3.0.0") public MultifaceGrowthConfiguration.Builder chanceOfSpreading(float chanceOfSpreading) Sets the chance of the block spreading.- Parameters:
chanceOfSpreading- the chance of the block spreading- Returns:
- this builder
- Since:
- 3.0.0
-
canBePlacedOn
@AsOf("3.0.0") public MultifaceGrowthConfiguration.Builder canBePlacedOn(Set<Material> canBePlacedOn) Sets the materials that the block can be placed on.- Parameters:
canBePlacedOn- the materials that the block can be placed on- Returns:
- this builder
- Since:
- 3.0.0
-
canPlaceOnFloor
Allows the block to be placed on the floor.- Returns:
- this builder
- Since:
- 3.0.0
-
canPlaceOnCeiling
Allows the block to be placed on the ceiling.- Returns:
- this builder
- Since:
- 3.0.0
-
canPlaceOnWall
Allows the block to be placed on the wall.- Returns:
- this builder
- Since:
- 3.0.0
-
canBePlacedOn
Adds materials to the set of materials that the block can be placed on.- Parameters:
canBePlacedOn- the materials to add- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the configuration.- Returns:
- the configuration
- Since:
- 3.0.0
-