コード例 #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;
  }
コード例 #2
0
  @Override
  public boolean contains(IIngredient ingredient) {
    List<IItemStack> items = ingredient.getItems();
    for (IItemStack item : items) {
      if (!matches(item)) return false;
    }

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