use of se.gory_moon.horsepower.recipes.PressRecipe in project HorsePower by GoryMoon.
the class PressRecipeMaker method getPressRecipes.
public static List<PressRecipeWrapper> getPressRecipes(IJeiHelpers helpers) {
IStackHelper stackHelper = helpers.getStackHelper();
Collection<PressRecipe> grindingRecipes = HPRecipes.instance().getPressRecipes();
List<PressRecipeWrapper> recipes = new ArrayList<>();
for (PressRecipe recipe : grindingRecipes) {
ItemStack input = recipe.getInput();
ItemStack output = recipe.getOutput();
List<ItemStack> inputs = stackHelper.getSubtypes(input);
PressRecipeWrapper pressRecipeWrapper = new PressRecipeWrapper(inputs, output);
recipes.add(pressRecipeWrapper);
}
return recipes;
}
Aggregations