public static class VillagerTradeTrigger.Instance extends CriterionInstance
Modifier and Type | Field and Description |
---|---|
private ItemPredicate |
item |
private EntityPredicate |
villager |
Constructor and Description |
---|
Instance(EntityPredicate villager,
ItemPredicate item) |
Modifier and Type | Method and Description |
---|---|
static VillagerTradeTrigger.Instance |
any() |
boolean |
func_215125_a(ServerPlayerEntity p_215125_1_,
AbstractVillagerEntity p_215125_2_,
ItemStack p_215125_3_) |
com.google.gson.JsonElement |
serialize() |
getId, toString
private final EntityPredicate villager
private final ItemPredicate item
public Instance(EntityPredicate villager, ItemPredicate item)
public static VillagerTradeTrigger.Instance any()
public boolean func_215125_a(ServerPlayerEntity p_215125_1_, AbstractVillagerEntity p_215125_2_, ItemStack p_215125_3_)
public com.google.gson.JsonElement serialize()