Class MangroveRootPlacement.Builder
java.lang.Object
dev.wyck.worldgen.feature.rootplacers.MangroveRootPlacement.Builder
- Enclosing interface:
MangroveRootPlacement
Builder for
MangroveRootPlacement.- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the mangrove root placement.canGrowThrough(Set<Material> canGrowThrough) Sets the blocks that roots can grow through.canGrowThrough(Material... canGrowThrough) Adds one or more blocks that roots can grow through.maxRootLength(int maxRootLength) Sets the maximum length of the root, between 1 and 64 (inclusive).maxRootWidth(int maxRootWidth) Sets the maximum width of the root, between 1 and 12 (inclusive).muddyRootsIn(Set<Material> muddyRootsIn) Sets the blocks in which roots turn into muddy root blocks.muddyRootsIn(Material... muddyRootsIn) Adds one or more blocks in which roots turn into muddy root blocks.muddyRootsProvider(BlockStateProvider muddyRootsProvider) Sets the blocks used as muddy roots.randomSkewChance(float randomSkewChance) Sets the probability of random skew, between 0.0F and 1.0F (inclusive).
-
Method Details
-
canGrowThrough
Sets the blocks that roots can grow through.- Parameters:
canGrowThrough- the blocks roots can grow through- Returns:
- this builder
- Since:
- 3.0.0
-
muddyRootsIn
Sets the blocks in which roots turn into muddy root blocks.- Parameters:
muddyRootsIn- the blocks that turn roots muddy- Returns:
- this builder
- Since:
- 3.0.0
-
muddyRootsProvider
@AsOf("3.0.0") public MangroveRootPlacement.Builder muddyRootsProvider(BlockStateProvider muddyRootsProvider) Sets the blocks used as muddy roots.- Parameters:
muddyRootsProvider- the muddy roots block state provider- Returns:
- this builder
- Since:
- 3.0.0
-
maxRootWidth
Sets the maximum width of the root, between 1 and 12 (inclusive).- Parameters:
maxRootWidth- the maximum root width- Returns:
- this builder
- Since:
- 3.0.0
-
maxRootLength
Sets the maximum length of the root, between 1 and 64 (inclusive).- Parameters:
maxRootLength- the maximum root length- Returns:
- this builder
- Since:
- 3.0.0
-
randomSkewChance
Sets the probability of random skew, between 0.0F and 1.0F (inclusive).- Parameters:
randomSkewChance- the random skew chance- Returns:
- this builder
- Since:
- 3.0.0
-
canGrowThrough
Adds one or more blocks that roots can grow through.- Parameters:
canGrowThrough- the blocks to add- Returns:
- this builder
- Since:
- 3.0.0
-
muddyRootsIn
Adds one or more blocks in which roots turn into muddy root blocks.- Parameters:
muddyRootsIn- the blocks to add- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the mangrove root placement.- Returns:
- a new mangrove root placement
- Since:
- 3.0.0
-