public class StructureProcessorRule extends Object
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<StructureProcessorRule> |
CODEC |
private RuleTest |
inputPredicate |
private RuleTest |
locationPredicate |
private BlockState |
outputState |
private PosRuleTest |
positionPredicate |
private CompoundTag |
tag |
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
BlockState |
getOutputState() |
CompoundTag |
getTag() |
boolean |
test(BlockState input,
BlockState location,
BlockPos blockPos,
BlockPos blockPos2,
BlockPos blockPos3,
Random random) |
public static final com.mojang.serialization.Codec<StructureProcessorRule> CODEC
private final RuleTest inputPredicate
private final RuleTest locationPredicate
private final PosRuleTest positionPredicate
private final BlockState outputState
@Nullable private final CompoundTag tag
public StructureProcessorRule(RuleTest ruleTest, RuleTest ruleTest2, BlockState blockState)
public StructureProcessorRule(RuleTest ruleTest, RuleTest ruleTest2, PosRuleTest posRuleTest, BlockState blockState)
public StructureProcessorRule(RuleTest ruleTest, RuleTest ruleTest2, PosRuleTest posRuleTest, BlockState blockState, Optional<CompoundTag> optional)
public boolean test(BlockState input, BlockState location, BlockPos blockPos, BlockPos blockPos2, BlockPos blockPos3, Random random)
public BlockState getOutputState()
@Nullable public CompoundTag getTag()