public CachedHeatRecipe(HeatRecipes recipe) { if (recipe == null) return; inputs.add(new PositionedStack(recipe.getInput(), 18, 24)); output = new PositionedStack(recipe.getOutput(), 132, 24); heatRequired = recipe.getRequiredHeat(); isBlockRecipe = recipe.isBlockRecipe(); }
@Override public void loadCraftingRecipes(ItemStack result) { for (HeatRecipes recipe : RecipeManager.heat) { if (recipe == null) continue; if (result.isItemEqual(recipe.getOutput())) arecipes.add(new CachedHeatRecipe(recipe)); } }