Class ProcessorRule.Builder
java.lang.Object
dev.wyck.worldgen.structure.templatesystem.processor.ProcessorRule.Builder
- Enclosing interface:
ProcessorRule
Builder for
ProcessorRule.- Since:
- 3.4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockEntityModifier(BlockEntityModifier blockEntityModifier) Sets what happens to the placed block's block entity data.build()Builds the rule.inputPredicate(RuleTest inputPredicate) Sets the test the template block has to pass.locationPredicate(RuleTest locationPredicate) Sets the test the world block being replaced has to pass.outputState(BlockData outputState) Sets the block placed when every test passes.positionPredicate(PosRuleTest positionPredicate) Sets the test the block's position within the template has to pass.
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
inputPredicate
Sets the test the template block has to pass.- Parameters:
inputPredicate- the input predicate- Returns:
- this builder
- Since:
- 3.4.0
-
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
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
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
-