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