public class RuleEntry
extends java.lang.Object
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> p_215212_1_) |
boolean |
test(BlockState p_215211_1_,
BlockState p_215211_2_,
java.util.Random p_215211_3_) |
public RuleEntry(RuleTest inputPredicate, RuleTest locationPredicate, BlockState outputState)
public RuleEntry(RuleTest inputPredicate, RuleTest locationPredicate, BlockState outputState, @Nullable CompoundNBT outputNbt)
public boolean test(BlockState p_215211_1_, BlockState p_215211_2_, java.util.Random p_215211_3_)
public BlockState getOutputState()
@Nullable public CompoundNBT getOutputNbt()
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> p_215212_1_)
public static <T> RuleEntry deserialize(com.mojang.datafixers.Dynamic<T> p_215213_0_)