Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void RemoveRecipes(ItemStack resultItem)
- {
- ArrayList recipes = (ArrayList) CraftingManager.getInstance().getRecipeList();
- for (int scan = 0; scan < recipes.size(); scan++)
- {
- IRecipe tmpRecipe = (IRecipe) recipes.get(scan);
- ItemStack recipeResult = tmpRecipe.getRecipeOutput();
- System.out.println(recipeResult + " : " + resultItem);
- if (ItemStack.areItemStacksEqual(resultItem, recipeResult))
- {
- System.out.println("[" + MODNAME + "] Removing Recipe: " + recipes.get(scan) + " -> " + recipeResult);
- recipes.remove(scan);
- }
- }
- }
- void AddRecipes()
- {
- for (ItemStack stack : OreDictionary.getOres("oreCopper"))
- {
- RemoveRecipes(stack);
- GameRegistry.addSmelting(stack, new ItemStack(ingotCopper, 1), 0.7f);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement