Class RootSystemConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.RootSystemConfiguration.Builder
- Enclosing interface:
RootSystemConfiguration
Builder for
RootSystemConfiguration.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedTreePosition(BlockPredicate allowedTreePosition) Sets the block predicate used to check if the tree position is valid.allowedVerticalWaterForTree(int allowedVerticalWaterForTree) Sets the amount of vertical water allowed for the placed feature.build()Builds the root system configuration.hangingRootPlacementAttempts(int hangingRootPlacementAttempts) Sets the number of attempts to place the hanging roots.hangingRootRadius(int hangingRootRadius) Sets the radius of the hanging roots.hangingRootStateProvider(BlockStateProvider hangingRootStateProvider) Sets the block to use for the hanging roots.hangingRootsVerticalSpan(int hangingRootsVerticalSpan) Sets the vertical span of the hanging roots.levelTestDistance(int levelTestDistance) Sets the maximum level deviation.maxLevelDeviation(int maxLevelDeviation) Sets the maximum level deviation.requiredVerticalSpaceForTree(int requiredVerticalSpaceForTree) Sets the amount of vertical space for the placed feature.rootColumnMaxHeight(int rootColumnMaxHeight) Sets the maximum height of the root column.rootPlacementAttempts(int rootPlacementAttempts) Sets the number of attempts to place the root column.rootRadius(int rootRadius) Sets the radius of which these roots can spread.rootReplaceable(ResourceKey rootReplaceable) Adds a tag of materials to the root-replaceable list.rootReplaceable(TagKey rootReplaceable) Sets the tag of materials which can be replaced by the root system.rootReplaceable(TagSet<Material> rootReplaceable) Adds a tag of materials to the root-replaceable list.rootReplaceable(Set<Material> rootReplaceable) Sets the tag of materials which can be replaced by the root system.rootReplaceable(Material... rootReplaceable) Adds a material to the root-replaceable list.rootReplaceable(Tag<Material> rootReplaceable) Adds a tag of materials to the root-replaceable list.rootStateProvider(BlockStateProvider rootStateProvider) Sets the block to use for the root column.treeFeature(PlacedFeature treeFeature) Sets the placed feature to place on top of the root system.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
treeFeature
Sets the placed feature to place on top of the root system.- Parameters:
treeFeature- the placed feature to place on top of the root system- Returns:
- this builder
- Since:
- 3.0.0
-
requiredVerticalSpaceForTree
@AsOf("3.0.0") public RootSystemConfiguration.Builder requiredVerticalSpaceForTree(int requiredVerticalSpaceForTree) Sets the amount of vertical space for the placed feature.- Parameters:
requiredVerticalSpaceForTree- the amount of vertical space for the placed feature- Returns:
- this builder
- Since:
- 3.0.0
-
levelTestDistance
Sets the maximum level deviation.- Parameters:
levelTestDistance- the maximum level deviation- Returns:
- this builder
- Since:
- 3.0.0
-
maxLevelDeviation
Sets the maximum level deviation.- Parameters:
maxLevelDeviation- the maximum level deviation- Returns:
- this builder
- Since:
- 3.0.0
-
rootRadius
Sets the radius of which these roots can spread.- Parameters:
rootRadius- the radius of which these roots can spread- Returns:
- this builder
- Since:
- 3.0.0
-
rootReplaceable
@AsOf("3.1.0") public RootSystemConfiguration.Builder rootReplaceable(Set<Material> rootReplaceable) Sets the tag of materials which can be replaced by the root system.- Parameters:
rootReplaceable- the tag of materials which can be replaced by the root system- Returns:
- this builder
- Since:
- 3.1.0
-
rootReplaceable
Sets the tag of materials which can be replaced by the root system.- Parameters:
rootReplaceable- the tag of materials which can be replaced by the root system- Returns:
- this builder
- Since:
- 3.1.0
-
rootStateProvider
@AsOf("3.0.0") public RootSystemConfiguration.Builder rootStateProvider(BlockStateProvider rootStateProvider) Sets the block to use for the root column.- Parameters:
rootStateProvider- the block to use for the root column- Returns:
- this builder
- Since:
- 3.0.0
-
rootPlacementAttempts
@AsOf("3.0.0") public RootSystemConfiguration.Builder rootPlacementAttempts(int rootPlacementAttempts) Sets the number of attempts to place the root column.- Parameters:
rootPlacementAttempts- the number of attempts to place the root column- Returns:
- this builder
- Since:
- 3.0.0
-
rootColumnMaxHeight
Sets the maximum height of the root column.- Parameters:
rootColumnMaxHeight- the maximum height of the root column- Returns:
- this builder
- Since:
- 3.0.0
-
hangingRootRadius
Sets the radius of the hanging roots.- Parameters:
hangingRootRadius- the radius of the hanging roots- Returns:
- this builder
- Since:
- 3.0.0
-
hangingRootsVerticalSpan
@AsOf("3.0.0") public RootSystemConfiguration.Builder hangingRootsVerticalSpan(int hangingRootsVerticalSpan) Sets the vertical span of the hanging roots.- Parameters:
hangingRootsVerticalSpan- the vertical span of the hanging roots- Returns:
- this builder
- Since:
- 3.0.0
-
hangingRootStateProvider
@AsOf("3.0.0") public RootSystemConfiguration.Builder hangingRootStateProvider(BlockStateProvider hangingRootStateProvider) Sets the block to use for the hanging roots.- Parameters:
hangingRootStateProvider- the block to use for the hanging roots- Returns:
- this builder
- Since:
- 3.0.0
-
hangingRootPlacementAttempts
@AsOf("3.0.0") public RootSystemConfiguration.Builder hangingRootPlacementAttempts(int hangingRootPlacementAttempts) Sets the number of attempts to place the hanging roots.- Parameters:
hangingRootPlacementAttempts- the number of attempts to place the hanging roots- Returns:
- this builder
- Since:
- 3.0.0
-
allowedVerticalWaterForTree
@AsOf("3.0.0") public RootSystemConfiguration.Builder allowedVerticalWaterForTree(int allowedVerticalWaterForTree) Sets the amount of vertical water allowed for the placed feature.- Parameters:
allowedVerticalWaterForTree- the amount of vertical water allowed for the placed feature- Returns:
- this builder
- Since:
- 3.0.0
-
allowedTreePosition
@AsOf("3.0.0") public RootSystemConfiguration.Builder allowedTreePosition(BlockPredicate allowedTreePosition) Sets the block predicate used to check if the tree position is valid.- Parameters:
allowedTreePosition- the block predicate used to check if the tree position is valid- Returns:
- this builder
- Since:
- 3.0.0
-
rootReplaceable
Adds a material to the root-replaceable list.- Parameters:
rootReplaceable- the material to add- Returns:
- this builder
- Since:
- 3.1.0
-
rootReplaceable
Adds a tag of materials to the root-replaceable list.- Parameters:
rootReplaceable- the tag of materials to add- Returns:
- this builder
- Since:
- 3.1.0
-
rootReplaceable
@AsOf("3.1.0") public RootSystemConfiguration.Builder rootReplaceable(TagSet<Material> rootReplaceable) Adds a tag of materials to the root-replaceable list.- Parameters:
rootReplaceable- the tag of materials to add- Returns:
- this builder
- Since:
- 3.1.0
-
rootReplaceable
@AsOf("3.1.0") public RootSystemConfiguration.Builder rootReplaceable(Tag<Material> rootReplaceable) Adds a tag of materials to the root-replaceable list.- Parameters:
rootReplaceable- the tag of materials to add- Returns:
- this builder
- Since:
- 3.1.0
-
build
Builds the root system configuration.- Returns:
- the root system configuration
- Since:
- 3.0.0
-