Class ProcessorRule.Builder

java.lang.Object
dev.wyck.worldgen.structure.templatesystem.processor.ProcessorRule.Builder
Enclosing interface:
ProcessorRule

@AsOf("3.4.0") public static final class ProcessorRule.Builder extends Object
Builder for ProcessorRule.
Since:
3.4.0
  • Constructor Details

  • Method Details

    • inputPredicate

      @AsOf("3.4.0") public ProcessorRule.Builder inputPredicate(RuleTest inputPredicate)
      Sets the test the template block has to pass.
      Parameters:
      inputPredicate - the input predicate
      Returns:
      this builder
      Since:
      3.4.0
    • locationPredicate

      @AsOf("3.4.0") public ProcessorRule.Builder locationPredicate(RuleTest locationPredicate)
      Sets the test the world block being replaced has to pass.
      Parameters:
      locationPredicate - the location predicate
      Returns:
      this builder
      Since:
      3.4.0
    • positionPredicate

      @AsOf("3.4.0") public ProcessorRule.Builder positionPredicate(PosRuleTest positionPredicate)
      Sets the test the block's position within the template has to pass.
      Parameters:
      positionPredicate - the position predicate
      Returns:
      this builder
      Since:
      3.4.0
    • outputState

      @AsOf("3.4.0") public ProcessorRule.Builder outputState(BlockData outputState)
      Sets the block placed when every test passes.
      Parameters:
      outputState - the output state
      Returns:
      this builder
      Since:
      3.4.0
    • blockEntityModifier

      @AsOf("3.4.0") public ProcessorRule.Builder blockEntityModifier(BlockEntityModifier blockEntityModifier)
      Sets what happens to the placed block's block entity data.
      Parameters:
      blockEntityModifier - the block entity modifier
      Returns:
      this builder
      Since:
      3.4.0
    • build

      @AsOf("3.4.0") public ProcessorRule build()
      Builds the rule.
      Returns:
      the rule
      Since:
      3.4.0