Class ConsumeItemTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.ConsumeItemTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- ConsumeItemTrigger
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
com.google.gson.JsonObject
serializeToJson
(SerializationContext p_23706_) usedItem()
usedItem
(ItemPredicate p_148082_) Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
item
-
-
Constructor Details
-
TriggerInstance
-
-
Method Details
-
usedItem
-
usedItem
-
usedItem
-
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-