public static class SlideDownBlockCriterion.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 SlideDownBlockCriterion.Conditions |
create(Block block) |
boolean |
test(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 SlideDownBlockCriterion.Conditions create(Block block)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions
public boolean test(BlockState state)