Class VegetationPatchConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.VegetationPatchConfiguration.Builder
- Enclosing interface:
VegetationPatchConfiguration
Builder for
VegetationPatchConfiguration.- Since:
- 3.0.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the vegetation patch configuration.depth(IntProvider depth) Sets the number of blocks the patch replaces per column.extraBottomBlockChance(float extraBottomBlockChance) Sets the chance to add one extra block to the depth of a column.extraEdgeColumnChance(float extraEdgeColumnChance) Sets the chance to add a search position adjacent to the initial rectangle.groundState(BlockStateProvider groundState) Sets the block used to build the patch.replaceable(ResourceKey replaceable) Sets a block tag of blocks that the patch is allowed to replace.replaceable(TagKey replaceable) Sets the blocks that the patch is allowed to replace.replaceable(TagSet<Material> replaceable) Sets a block tag of blocks that the patch is allowed to replace.replaceable(Set<Material> replaceable) Sets the blocks that the patch is allowed to replace.replaceable(Material... replaceable) Adds materials to the replaceable set.replaceable(Tag<Material> replaceable) Sets a block tag of blocks that the patch is allowed to replace.surface(CaveSurface surface) Sets which surface to search from and place against.vegetationChance(float vegetationChance) Sets the chance of placing the vegetation feature on a found position.vegetationFeature(PlacedFeature vegetationFeature) Sets the placed feature to place on top of each found position.verticalRange(int verticalRange) Sets the vertical distance a column searches for an available position.xzRadius(IntProvider xzRadius) Sets the XZ radius searched for available positions.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
replaceable
Sets the blocks that the patch is allowed to replace.- Parameters:
replaceable- the replaceable materials- Returns:
- this builder
- Since:
- 3.1.0
-
replaceable
Sets the blocks that the patch is allowed to replace.- Parameters:
replaceable- the replaceable materials- Returns:
- this builder
- Since:
- 3.1.0
-
groundState
@AsOf("3.0.1") public VegetationPatchConfiguration.Builder groundState(BlockStateProvider groundState) Sets the block used to build the patch.- Parameters:
groundState- the ground state provider- Returns:
- this builder
- Since:
- 3.0.1
-
vegetationFeature
@AsOf("3.0.1") public VegetationPatchConfiguration.Builder vegetationFeature(PlacedFeature vegetationFeature) Sets the placed feature to place on top of each found position.- Parameters:
vegetationFeature- the vegetation feature- Returns:
- this builder
- Since:
- 3.0.1
-
surface
Sets which surface to search from and place against.- Parameters:
surface- the surface- Returns:
- this builder
- Since:
- 3.0.1
-
depth
Sets the number of blocks the patch replaces per column.- Parameters:
depth- the depth, between 1 and 128- Returns:
- this builder
- Since:
- 3.0.1
-
extraBottomBlockChance
@AsOf("3.0.1") public VegetationPatchConfiguration.Builder extraBottomBlockChance(float extraBottomBlockChance) Sets the chance to add one extra block to the depth of a column.- Parameters:
extraBottomBlockChance- the extra bottom block chance, between 0.0 and 1.0- Returns:
- this builder
- Since:
- 3.0.1
-
verticalRange
Sets the vertical distance a column searches for an available position.- Parameters:
verticalRange- the vertical range, between 1 and 256- Returns:
- this builder
- Since:
- 3.0.1
-
vegetationChance
Sets the chance of placing the vegetation feature on a found position.- Parameters:
vegetationChance- the vegetation chance, between 0.0 and 1.0- Returns:
- this builder
- Since:
- 3.0.1
-
xzRadius
Sets the XZ radius searched for available positions.- Parameters:
xzRadius- the xz radius- Returns:
- this builder
- Since:
- 3.0.1
-
extraEdgeColumnChance
@AsOf("3.0.1") public VegetationPatchConfiguration.Builder extraEdgeColumnChance(float extraEdgeColumnChance) Sets the chance to add a search position adjacent to the initial rectangle.- Parameters:
extraEdgeColumnChance- the extra edge column chance, between 0.0 and 1.0- Returns:
- this builder
- Since:
- 3.0.1
-
replaceable
Adds materials to the replaceable set.- Parameters:
replaceable- the materials to add- Returns:
- this builder
- Since:
- 3.1.0
-
replaceable
Sets a block tag of blocks that the patch is allowed to replace.- Parameters:
replaceable- the replaceable tag- Returns:
- this builder
- Since:
- 3.1.0
-
replaceable
@AsOf("3.1.0") public VegetationPatchConfiguration.Builder replaceable(TagSet<Material> replaceable) Sets a block tag of blocks that the patch is allowed to replace.- Parameters:
replaceable- the replaceable tag- Returns:
- this builder
- Since:
- 3.1.0
-
replaceable
Sets a block tag of blocks that the patch is allowed to replace.- Parameters:
replaceable- the replaceable tag- Returns:
- this builder
- Since:
- 3.1.0
-
build
Builds the vegetation patch configuration.- Returns:
- the vegetation patch configuration
- Since:
- 3.0.1
-