Class PickedUpItemTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.PickedUpItemTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- PickedUpItemTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final EntityPredicate.Composite
private final ItemPredicate
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(ResourceLocation p_221318_, EntityPredicate.Composite p_221319_, ItemPredicate p_221320_, EntityPredicate.Composite p_221321_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(ServerPlayer p_221323_, ItemStack p_221324_, LootContext p_221325_) com.google.gson.JsonObject
serializeToJson
(SerializationContext p_221331_) thrownItemPickedUpByEntity
(EntityPredicate.Composite p_221327_, ItemPredicate p_221328_, EntityPredicate.Composite p_221329_) thrownItemPickedUpByPlayer
(EntityPredicate.Composite p_221333_, ItemPredicate p_221334_, EntityPredicate.Composite p_221335_) Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
item
-
entity
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(ResourceLocation p_221318_, EntityPredicate.Composite p_221319_, ItemPredicate p_221320_, EntityPredicate.Composite p_221321_)
-
-
Method Details
-
thrownItemPickedUpByEntity
public static PickedUpItemTrigger.TriggerInstance thrownItemPickedUpByEntity(EntityPredicate.Composite p_221327_, ItemPredicate p_221328_, EntityPredicate.Composite p_221329_) -
thrownItemPickedUpByPlayer
public static PickedUpItemTrigger.TriggerInstance thrownItemPickedUpByPlayer(EntityPredicate.Composite p_221333_, ItemPredicate p_221334_, EntityPredicate.Composite p_221335_) -
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-