mrkirby153

Untitled

Jan 9th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. System.out.println("---- RUNNING RECIPIE REMOVER -----");
  2. List<IRecipe> recipeList = CraftingManager.getInstance().getRecipeList();
  3. for (int i = 0; i < recipeList.size(); i++) {
  4. IRecipe recipe = recipeList.get(i);
  5. if (recipe.getRecipeOutput() == null)
  6. continue;
  7. if (RecipieHandler.isDisabled(recipe.getRecipeOutput().getItem())) {
  8. IRecipe r = recipe;
  9. if (recipe instanceof ShapedRecipes) {
  10. ShapedRecipes rec = (ShapedRecipes) recipe;
  11. r = new CustomShapedRecipie(rec.recipeWidth, rec.recipeHeight, rec.recipeItems, rec.getRecipeOutput());
  12. }
  13. if (recipe instanceof ShapedOreRecipe) {
  14. ShapedOreRecipe rec = (ShapedOreRecipe) recipe;
  15. /*r = new CustomOreRecipie(rec.getRecipeOutput(), rec.getInput());*/
  16. for (Object o : rec.getInput()) {
  17. ItemStack item = null;
  18. if(o instanceof Item)
  19. item = new ItemStack((Item) o);
  20. if(o instanceof Block)
  21. item = new ItemStack((Block) o);
  22. if(o instanceof String)
  23. System.out.println(o.toString());
  24. System.out.println(OreDictionary.getOreIDs(item));
  25. }
  26. }
  27. recipeList.set(i, r);
  28. }
  29. }
  30. System.out.println("----- DONE -----");
Advertisement
Add Comment
Please, Sign In to add comment