Guest User

Recipes

a guest
May 27th, 2016
30
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.      * Removes all recipes so that we may replace them.
  3.      */
  4.     public static final void removeAllRecipes()
  5.     {
  6.         List<IRecipe> recipes = CraftingManager.getInstance().getRecipeList();
  7.        
  8.        
  9.        
  10.         Iterator<IRecipe> Leash = recipes.iterator();
  11.         {
  12.             while (Leash.hasNext())
  13.             {
  14.                 //Get Recipe
  15.                 IRecipe recipe = Leash.next();
  16.                 //Remove Recipe
  17.                 Leash.remove();
  18.                 //Add the Recipe back
  19.                 addVanillaRecipes(recipe);
  20.             }
  21.         }
  22.     }
  23.    
  24.     /**
  25.      * Adds the recipe back to minecraft with my custom requirements.
  26.      */
  27.     private static final void addVanillaRecipes(IRecipe recipe)
  28.     {
  29.         //Add the vanila recipe back to minecraft
  30.     }
RAW Paste Data