public static class EnterBlockTrigger.Instance extends CriterionInstance
Modifier and Type | Field and Description |
---|---|
private Block |
block |
private StatePropertiesPredicate |
properties |
Constructor and Description |
---|
Instance(Block p_i225733_1_,
StatePropertiesPredicate p_i225733_2_) |
Modifier and Type | Method and Description |
---|---|
static EnterBlockTrigger.Instance |
forBlock(Block p_203920_0_) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(BlockState state) |
getId, toString
private final Block block
private final StatePropertiesPredicate properties
public Instance(@Nullable Block p_i225733_1_, StatePropertiesPredicate p_i225733_2_)
public static EnterBlockTrigger.Instance forBlock(Block p_203920_0_)
public com.google.gson.JsonElement serialize()
public boolean test(BlockState state)