use of se.gory_moon.horsepower.recipes.GrindstoneRecipe in project HorsePower by GoryMoon.
the class GrindingRecipeMaker method getGrindstoneRecipes.
public static List<GrindstoneRecipeWrapper> getGrindstoneRecipes(IJeiHelpers helpers, boolean hand) {
IStackHelper stackHelper = helpers.getStackHelper();
Collection<GrindstoneRecipe> grindingRecipes = hand ? HPRecipes.instance().getHandGrindstoneRecipes() : HPRecipes.instance().getGrindstoneRecipes();
List<GrindstoneRecipeWrapper> recipes = new ArrayList<>();
for (GrindstoneRecipe recipe : grindingRecipes) {
ItemStack input = recipe.getInput();
ItemStack output = recipe.getOutput();
ItemStack secondary = recipe.getSecondary();
List<ItemStack> inputs = stackHelper.getSubtypes(input);
GrindstoneRecipeWrapper grindstoneRecipeWrapper = new GrindstoneRecipeWrapper(inputs, output, secondary, recipe.getSecondaryChance(), recipe.getTime());
recipes.add(grindstoneRecipeWrapper);
}
return recipes;
}
Aggregations