Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Removes all recipes so that we may replace them.
- */
- public static final void removeAllRecipes()
- {
- List<IRecipe> recipes = CraftingManager.getInstance().getRecipeList();
- Iterator<IRecipe> Leash = recipes.iterator();
- {
- while (Leash.hasNext())
- {
- //Get Recipe
- IRecipe recipe = Leash.next();
- //Remove Recipe
- Leash.remove();
- //Add the Recipe back
- addVanillaRecipes(recipe);
- }
- }
- }
- /**
- * Adds the recipe back to minecraft with my custom requirements.
- */
- private static final void addVanillaRecipes(IRecipe recipe)
- {
- //Add the vanila recipe back to minecraft
- }
Advertisement
Add Comment
Please, Sign In to add comment