Class ItemPickedUpByEntityTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.ItemPickedUpByEntityTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- ItemPickedUpByEntityTrigger
public static class ItemPickedUpByEntityTrigger.TriggerInstance
extends AbstractCriterionTriggerInstance
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTriggerInstance(EntityPredicate.Composite p_44384_, ItemPredicate p_44385_, EntityPredicate.Composite p_44386_)
-
Method Summary
Modifier and TypeMethodDescriptionitemPickedUpByEntity(EntityPredicate.Composite p_44392_, ItemPredicate.Builder p_44393_, EntityPredicate.Composite p_44394_)
boolean
matches(ServerPlayer p_44388_, ItemStack p_44389_, LootContext p_44390_)
com.google.gson.JsonObject
serializeToJson(SerializationContext p_44396_)
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
item
-
entity
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(EntityPredicate.Composite p_44384_, ItemPredicate p_44385_, EntityPredicate.Composite p_44386_)
-
-
Method Details
-
itemPickedUpByEntity
public static ItemPickedUpByEntityTrigger.TriggerInstance itemPickedUpByEntity(EntityPredicate.Composite p_44392_, ItemPredicate.Builder p_44393_, EntityPredicate.Composite p_44394_) -
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-