Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.out.println("---- RUNNING RECIPIE REMOVER -----");
- List<IRecipe> recipeList = CraftingManager.getInstance().getRecipeList();
- for (int i = 0; i < recipeList.size(); i++) {
- IRecipe recipe = recipeList.get(i);
- if (recipe.getRecipeOutput() == null)
- continue;
- if (RecipieHandler.isDisabled(recipe.getRecipeOutput().getItem())) {
- IRecipe r = recipe;
- if (recipe instanceof ShapedRecipes) {
- ShapedRecipes rec = (ShapedRecipes) recipe;
- r = new CustomShapedRecipie(rec.recipeWidth, rec.recipeHeight, rec.recipeItems, rec.getRecipeOutput());
- }
- if (recipe instanceof ShapedOreRecipe) {
- ShapedOreRecipe rec = (ShapedOreRecipe) recipe;
- /*r = new CustomOreRecipie(rec.getRecipeOutput(), rec.getInput());*/
- for (Object o : rec.getInput()) {
- ItemStack item = null;
- if(o instanceof Item)
- item = new ItemStack((Item) o);
- if(o instanceof Block)
- item = new ItemStack((Block) o);
- if(o instanceof String)
- System.out.println(o.toString());
- System.out.println(OreDictionary.getOreIDs(item));
- }
- }
- recipeList.set(i, r);
- }
- }
- System.out.println("----- DONE -----");
Advertisement
Add Comment
Please, Sign In to add comment