Class UsingItemTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.UsingItemTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- UsingItemTrigger
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTriggerInstance(EntityPredicate.Composite p_163881_, ItemPredicate p_163882_)
-
Method Summary
Modifier and TypeMethodDescriptionlookingAt(EntityPredicate.Builder p_163884_, ItemPredicate.Builder p_163885_)
boolean
com.google.gson.JsonObject
serializeToJson(SerializationContext p_163889_)
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
item
-
-
Constructor Details
-
TriggerInstance
-
-
Method Details
-
lookingAt
public static UsingItemTrigger.TriggerInstance lookingAt(EntityPredicate.Builder p_163884_, ItemPredicate.Builder p_163885_) -
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-