@Override public void loadCraftingRecipes(ItemStack result) { List<RecipeResearched> allrecipes = AWCraftingManager.INSTANCE.getRecipes(); for (RecipeResearched irecipe : allrecipes) { if (InventoryTools.doItemStacksMatch(irecipe.getRecipeOutput(), result)) { this.arecipes.add(new AWCachedRecipe(irecipe)); } } }
public AWCachedRecipe(RecipeResearched recipe) { result = new PositionedStack(recipe.getRecipeOutput().copy(), 119, 24); ingredients = new ArrayList<PositionedStack>(); setIngredients(recipe.recipeWidth, recipe.recipeHeight, recipe.recipeItems); }