Class VillagerTradeTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.VillagerTradeTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- VillagerTradeTrigger
public static class VillagerTradeTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private ItemPredicate
item
private EntityPredicate.AndPredicate
villager
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i232013_1_, EntityPredicate.AndPredicate p_i232013_2_, ItemPredicate p_i232013_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(LootContext p_236575_1_, ItemStack p_236575_2_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
static VillagerTradeTrigger.Instance
tradedWithVillager()
-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
villager
private final EntityPredicate.AndPredicate villager
-
item
private final ItemPredicate item
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i232013_1_, EntityPredicate.AndPredicate p_i232013_2_, ItemPredicate p_i232013_3_)
-
-
Method Detail
-
tradedWithVillager
public static VillagerTradeTrigger.Instance tradedWithVillager()
-
matches
public boolean matches(LootContext p_236575_1_, ItemStack p_236575_2_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-