Exemplo 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;
  }
Exemplo 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;
  }
Exemplo n.º 3
0
 @Override
 public boolean contains(IIngredient ingredient) {
   List<IItemStack> iitems = ingredient.getItems();
   return !(iitems == null || iitems.size() != 1) && matches(iitems.get(0));
 }