Class StructureProcessorRule
java.lang.Object
net.minecraft.structure.processor.StructureProcessorRule
public class StructureProcessorRule extends Object
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<StructureProcessorRule>
CODEC
private RuleTest
inputPredicate
private RuleTest
locationPredicate
private BlockState
outputState
private PosRuleTest
positionPredicate
private CompoundTag
tag
-
Constructor Summary
Constructors Constructor Description StructureProcessorRule(RuleTest ruleTest, RuleTest ruleTest2, BlockState blockState)
StructureProcessorRule(RuleTest ruleTest, RuleTest ruleTest2, PosRuleTest posRuleTest, BlockState blockState)
StructureProcessorRule(RuleTest ruleTest, RuleTest ruleTest2, PosRuleTest posRuleTest, BlockState blockState, Optional<CompoundTag> optional)
-
Method Summary
Modifier and Type Method Description BlockState
getOutputState()
CompoundTag
getTag()
boolean
test(BlockState input, BlockState location, BlockPos blockPos, BlockPos blockPos2, BlockPos blockPos3, Random random)
-
Field Details
-
CODEC
-
inputPredicate
-
locationPredicate
-
positionPredicate
-
outputState
-
tag
-
-
Constructor Details
-
StructureProcessorRule
-
StructureProcessorRule
public StructureProcessorRule(RuleTest ruleTest, RuleTest ruleTest2, PosRuleTest posRuleTest, BlockState blockState) -
StructureProcessorRule
public StructureProcessorRule(RuleTest ruleTest, RuleTest ruleTest2, PosRuleTest posRuleTest, BlockState blockState, Optional<CompoundTag> optional)
-
-
Method Details
-
test
public boolean test(BlockState input, BlockState location, BlockPos blockPos, BlockPos blockPos2, BlockPos blockPos3, Random random) -
getOutputState
-
getTag
-