public void loadCraftingRecipes(ItemStack result) { Map<Object[], Object[]> recipes = ElectrolyserRecipes.instance().getRecipes(); for (Map.Entry<Object[], Object[]> recipe : recipes.entrySet()) { int pos = ElectrolyserRecipes.instance().containsStack(result, recipe.getValue(), false); if (pos != -1) { this.arecipes.add( new SmeltingPair( recipe.getKey()[0], recipe.getValue()[0], recipe.getValue()[1], recipe.getValue()[2], recipe.getValue()[3])); } } }
public void loadCraftingRecipes(String outputId, Object... results) { if ((outputId.equals("electrolysing")) && (getClass() == ElectrolyserRecipeHandler.class)) { Map<Object[], Object[]> recipes = ElectrolyserRecipes.instance().getRecipes(); for (Map.Entry<Object[], Object[]> recipe : recipes.entrySet()) { this.arecipes.add( new SmeltingPair( recipe.getKey()[0], recipe.getValue()[0], recipe.getValue()[1], recipe.getValue()[2], recipe.getValue()[3])); } } else { super.loadCraftingRecipes(outputId, results); } }