public static class VillagerTradeTrigger.Instance extends AbstractCriterionInstance
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 |
---|---|
boolean |
test(EntityPlayerMP player,
EntityVillager villager,
ItemStack item) |
getId, toString
private final EntityPredicate villager
private final ItemPredicate item
public Instance(EntityPredicate villager, ItemPredicate item)
public boolean test(EntityPlayerMP player, EntityVillager villager, ItemStack item)