public static class EnterBlockCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private Block |
block |
private StatePredicate |
state |
Constructor and Description |
---|
Conditions(Block block,
StatePredicate state) |
Modifier and Type | Method and Description |
---|---|
static EnterBlockCriterion.Conditions |
block(Block block) |
boolean |
matches(BlockState state) |
JsonElement |
toJson() |
getId, toString
private final Block block
private final StatePredicate state
public Conditions(@Nullable Block block, StatePredicate state)
public static EnterBlockCriterion.Conditions block(Block block)
public JsonElement toJson()
public boolean matches(BlockState state)