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
(ContextAwarePredicate p_286523_, ContextAwarePredicate p_286395_, ItemPredicate p_286263_) -
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(ContextAwarePredicate p_286523_, ContextAwarePredicate p_286395_, ItemPredicate p_286263_)
-
-
Method Details
-
tradedWithVillager
-
tradedWithVillager
-
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-