Search in sources :

Example 1 with PressRecipe

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;
}
Also used : ArrayList(java.util.ArrayList) PressRecipe(se.gory_moon.horsepower.recipes.PressRecipe) IStackHelper(mezz.jei.api.recipe.IStackHelper) ItemStack(net.minecraft.item.ItemStack)

Aggregations

ArrayList (java.util.ArrayList)1 IStackHelper (mezz.jei.api.recipe.IStackHelper)1 ItemStack (net.minecraft.item.ItemStack)1 PressRecipe (se.gory_moon.horsepower.recipes.PressRecipe)1