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
(ContextAwarePredicate p_286824_, ItemPredicate p_286719_, ContextAwarePredicate p_286219_) -
Method Summary
Modifier and TypeMethodDescriptionitemUsedOnEntity
(ContextAwarePredicate p_286452_, ItemPredicate.Builder p_286289_, ContextAwarePredicate p_286370_) itemUsedOnEntity
(ItemPredicate.Builder p_286235_, ContextAwarePredicate p_286667_) 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(ContextAwarePredicate p_286824_, ItemPredicate p_286719_, ContextAwarePredicate p_286219_)
-
-
Method Details
-
itemUsedOnEntity
public static PlayerInteractTrigger.TriggerInstance itemUsedOnEntity(ContextAwarePredicate p_286452_, ItemPredicate.Builder p_286289_, ContextAwarePredicate p_286370_) -
itemUsedOnEntity
public static PlayerInteractTrigger.TriggerInstance itemUsedOnEntity(ItemPredicate.Builder p_286235_, ContextAwarePredicate p_286667_) -
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-