Esempio n. 1
0
  @Override
  public boolean contains(IIngredient ingredient) {
    if (!ingredient.getItems().isEmpty()) return false;

    for (ILiquidStack liquid : ingredient.getLiquids()) {
      if (!matches(liquid)) return false;
    }

    return false;
  }
Esempio n. 2
0
  @Override
  public boolean contains(IIngredient ingredient) {
    List<IItemStack> items = ingredient.getItems();
    for (IItemStack item : items) {
      if (!matches(item)) return false;
    }

    return true;
  }
Esempio n. 3
0
 @Override
 public boolean contains(IIngredient ingredient) {
   List<IItemStack> iitems = ingredient.getItems();
   return !(iitems == null || iitems.size() != 1) && matches(iitems.get(0));
 }