Class TradeTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.TradeTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- TradeTrigger
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTriggerInstance(EntityPredicate.Composite p_70979_, EntityPredicate.Composite p_70980_, ItemPredicate p_70981_)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
matches(LootContext p_70985_, ItemStack p_70986_)
com.google.gson.JsonObject
serializeToJson(SerializationContext p_70983_)
static TradeTrigger.TriggerInstance
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
villager
-
item
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(EntityPredicate.Composite p_70979_, EntityPredicate.Composite p_70980_, ItemPredicate p_70981_)
-
-
Method Details
-
tradedWithVillager
-
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-