Class PlayerEntityInteractionTrigger.Instance
java.lang.Object
net.minecraft.advancements.criterion.CriterionInstance
net.minecraft.advancements.criterion.PlayerEntityInteractionTrigger.Instance
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- PlayerEntityInteractionTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final EntityPredicate.AndPredicate
private final ItemPredicate
-
Constructor Summary
ConstructorDescriptionInstance
(EntityPredicate.AndPredicate p_i241240_1_, ItemPredicate p_i241240_2_, EntityPredicate.AndPredicate p_i241240_3_) -
Method Summary
Modifier and TypeMethodDescriptionitemUsedOnEntity
(EntityPredicate.AndPredicate p_241480_0_, ItemPredicate.Builder p_241480_1_, EntityPredicate.AndPredicate p_241480_2_) boolean
matches
(ItemStack p_241481_1_, LootContext p_241481_2_) com.google.gson.JsonObject
serializeToJson
(ConditionArraySerializer p_230240_1_) Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
item
-
entity
-
-
Constructor Details
-
Instance
public Instance(EntityPredicate.AndPredicate p_i241240_1_, ItemPredicate p_i241240_2_, EntityPredicate.AndPredicate p_i241240_3_)
-
-
Method Details
-
itemUsedOnEntity
public static PlayerEntityInteractionTrigger.Instance itemUsedOnEntity(EntityPredicate.AndPredicate p_241480_0_, ItemPredicate.Builder p_241480_1_, EntityPredicate.AndPredicate p_241480_2_) -
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-