@Override public List<IEnderIoRecipe> getAllRecipes() { List<IEnderIoRecipe> result = new ArrayList<IEnderIoRecipe>(); List<IAlloyRecipe> recipes = AlloyRecipeManager.getInstance().getRecipes(); for (IRecipe cr : recipes) { List<IRecipeComponent> components = new ArrayList<IRecipeComponent>(); for (crazypants.enderio.machine.recipe.RecipeInput ri : cr.getInputs()) { if (ri.getInput() != null) { IRecipeInput input = new RecipeInput(ri.getInput(), -1, ri.getEquivelentInputs()); components.add(input); } } for (RecipeOutput co : cr.getOutputs()) { IRecipeOutput output = new crazypants.enderio.crafting.impl.RecipeOutput(co.getOutput(), co.getChance()); components.add(output); } result.add( new EnderIoRecipe(IEnderIoRecipe.ALLOY_SMELTER_ID, cr.getEnergyRequired(), components)); } return result; }