public static class VillagerTradeCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private ItemPredicate |
item |
private EntityPredicate |
villager |
Constructor and Description |
---|
Conditions(EntityPredicate entity,
ItemPredicate item) |
Modifier and Type | Method and Description |
---|---|
static VillagerTradeCriterion.Conditions |
any() |
boolean |
matches(ServerPlayerEntity player,
AbstractTraderEntity trader,
ItemStack stack) |
JsonElement |
toJson() |
getId, toString
private final EntityPredicate villager
private final ItemPredicate item
public Conditions(EntityPredicate entity, ItemPredicate item)
public static VillagerTradeCriterion.Conditions any()
public boolean matches(ServerPlayerEntity player, AbstractTraderEntity trader, ItemStack stack)
public JsonElement toJson()