public static class EnterBlockCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private Block |
block |
private StatePredicate |
state |
Constructor and Description |
---|
Conditions(EntityPredicate.Extended player,
Block block,
StatePredicate state) |
Modifier and Type | Method and Description |
---|---|
static EnterBlockCriterion.Conditions |
block(Block block) |
boolean |
matches(BlockState state) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
private final Block block
private final StatePredicate state
public Conditions(EntityPredicate.Extended player, @Nullable Block block, StatePredicate state)
public static EnterBlockCriterion.Conditions block(Block block)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions
public boolean matches(BlockState state)