public static class FilledBucketCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private ItemPredicate |
item |
Constructor and Description |
---|
Conditions(EntityPredicate.Extended player,
ItemPredicate item) |
Modifier and Type | Method and Description |
---|---|
static FilledBucketCriterion.Conditions |
create(ItemPredicate item) |
boolean |
matches(ItemStack stack) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
private final ItemPredicate item
public Conditions(EntityPredicate.Extended player, ItemPredicate item)
public static FilledBucketCriterion.Conditions create(ItemPredicate item)
public boolean matches(ItemStack stack)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions