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
Modifier and TypeFieldDescriptionprivate final ItemPredicate
private final EntityPredicate.Composite
-
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
static TradeTrigger.TriggerInstance
tradedWithVillager
(EntityPredicate.Builder p_191437_) 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
-
tradedWithVillager
-
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-