public class RuleEntry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private RuleTest |
inputPredicate |
private RuleTest |
locationPredicate |
private CompoundNBT |
outputNbt |
private BlockState |
outputState |
Constructor and Description |
---|
RuleEntry(RuleTest inputPredicate,
RuleTest locationPredicate,
BlockState outputState) |
RuleEntry(RuleTest inputPredicate,
RuleTest locationPredicate,
BlockState outputState,
CompoundNBT outputNbt) |
Modifier and Type | Method and Description |
---|---|
static <T> RuleEntry |
deserialize(com.mojang.datafixers.Dynamic<T> p_215213_0_) |
CompoundNBT |
getOutputNbt() |
BlockState |
getOutputState() |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
boolean |
test(BlockState stateA,
BlockState stateB,
java.util.Random rand) |
private final RuleTest inputPredicate
private final RuleTest locationPredicate
private final BlockState outputState
@Nullable private final CompoundNBT outputNbt
public RuleEntry(RuleTest inputPredicate, RuleTest locationPredicate, BlockState outputState)
public RuleEntry(RuleTest inputPredicate, RuleTest locationPredicate, BlockState outputState, @Nullable CompoundNBT outputNbt)
public boolean test(BlockState stateA, BlockState stateB, java.util.Random rand)
public BlockState getOutputState()
@Nullable public CompoundNBT getOutputNbt()
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
public static <T> RuleEntry deserialize(com.mojang.datafixers.Dynamic<T> p_215213_0_)