public static class UsedTotemCriterion.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 UsedTotemCriterion.Conditions |
create(ItemConvertible 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 UsedTotemCriterion.Conditions create(ItemConvertible item)
public boolean matches(ItemStack stack)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions