public static class BrewedPotionCriterion.Conditions extends AbstractCriterionConditions
Constructor and Description |
---|
Conditions(EntityPredicate.Extended player,
Potion potion) |
Modifier and Type | Method and Description |
---|---|
static BrewedPotionCriterion.Conditions |
any() |
boolean |
matches(Potion potion) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
private final Potion potion
public Conditions(EntityPredicate.Extended player, @Nullable Potion potion)
public static BrewedPotionCriterion.Conditions any()
public boolean matches(Potion potion)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions