Class EnvironmentScanPlacement.Builder
java.lang.Object
dev.wyck.worldgen.placement.EnvironmentScanPlacement.Builder
- Enclosing interface:
EnvironmentScanPlacement
Builder for
EnvironmentScanPlacement.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedSearchCondition(BlockPredicate allowedSearchCondition) Sets the allowed search condition.build()Builds the environment scan placement.directionOfSearch(BlockFace directionOfSearch) Sets the direction of search.maxSteps(int maxSteps) Sets the maximum number of steps.targetCondition(BlockPredicate targetCondition) Sets the target condition.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
directionOfSearch
@AsOf("3.0.0") public EnvironmentScanPlacement.Builder directionOfSearch(BlockFace directionOfSearch) Sets the direction of search.- Parameters:
directionOfSearch- one ofupordown- Returns:
- this builder
- Since:
- 3.0.0
-
targetCondition
@AsOf("3.0.0") public EnvironmentScanPlacement.Builder targetCondition(BlockPredicate targetCondition) Sets the target condition.- Parameters:
targetCondition- the block predicate that is searched for- Returns:
- this builder
- Since:
- 3.0.0
-
allowedSearchCondition
@AsOf("3.0.0") public EnvironmentScanPlacement.Builder allowedSearchCondition(BlockPredicate allowedSearchCondition) Sets the allowed search condition.- Parameters:
allowedSearchCondition- each step must match this block predicate to continue the scan- Returns:
- this builder
- Since:
- 3.0.0
-
maxSteps
Sets the maximum number of steps.- Parameters:
maxSteps- maximum number of steps to search between 1 and 32- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the environment scan placement.- Returns:
- the environment scan placement
- Since:
- 3.0.0
-