Class ConsumeItemCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.ConsumeItemCriterion.Conditions
- All Implemented Interfaces:
CriterionConditions
- Enclosing class:
- ConsumeItemCriterion
public static class ConsumeItemCriterion.Conditions extends AbstractCriterionConditions
-
Field Summary
Fields Modifier and Type Field Description private ItemPredicate
item
-
Constructor Summary
Constructors Constructor Description Conditions(EntityPredicate.Extended player, ItemPredicate item)
-
Method Summary
Modifier and Type Method Description static ConsumeItemCriterion.Conditions
any()
static ConsumeItemCriterion.Conditions
item(ItemConvertible item)
boolean
matches(ItemStack stack)
JsonObject
toJson(AdvancementEntityPredicateSerializer predicateSerializer)
Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getId, getPlayerPredicate, toString
-
Field Details
-
item
-
-
Constructor Details
-
Conditions
-
-
Method Details
-
any
-
item
-
matches
-
toJson
- Specified by:
toJson
in interfaceCriterionConditions
- Overrides:
toJson
in classAbstractCriterionConditions
-