Class EnvironmentScanPlacement.Builder

java.lang.Object
dev.wyck.worldgen.placement.EnvironmentScanPlacement.Builder
Enclosing interface:
EnvironmentScanPlacement

@AsOf("3.0.0") public static final class EnvironmentScanPlacement.Builder extends Object
Since:
3.0.0
  • Constructor Details

  • Method Details

    • directionOfSearch

      @AsOf("3.0.0") public EnvironmentScanPlacement.Builder directionOfSearch(BlockFace directionOfSearch)
      Sets the direction of search.
      Parameters:
      directionOfSearch - one of up or down
      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

      @AsOf("3.0.0") public EnvironmentScanPlacement.Builder maxSteps(int 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

      @AsOf("3.0.0") public EnvironmentScanPlacement build()
      Builds the environment scan placement.
      Returns:
      the environment scan placement
      Since:
      3.0.0