Class PlayerInteractTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.PlayerInteractTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- PlayerInteractTrigger
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTriggerInstance(EntityPredicate.Composite p_61514_, ItemPredicate p_61515_, EntityPredicate.Composite p_61516_)
-
Method Summary
Modifier and TypeMethodDescriptionitemUsedOnEntity(EntityPredicate.Composite p_61518_, ItemPredicate.Builder p_61519_, EntityPredicate.Composite p_61520_)
boolean
matches(ItemStack p_61522_, LootContext p_61523_)
com.google.gson.JsonObject
serializeToJson(SerializationContext p_61525_)
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
item
-
entity
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(EntityPredicate.Composite p_61514_, ItemPredicate p_61515_, EntityPredicate.Composite p_61516_)
-
-
Method Details
-
itemUsedOnEntity
public static PlayerInteractTrigger.TriggerInstance itemUsedOnEntity(EntityPredicate.Composite p_61518_, ItemPredicate.Builder p_61519_, EntityPredicate.Composite p_61520_) -
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-