July 28, 201312 yr Author Looked around for about 30 minutes and didn't find anything. Im looking for something like GameRegistry.getRecipe(Item) but obvs that doesn't exist...
July 29, 201312 yr I only know how to getRecipe^^ but the rest ID not know public static ShapedRecipe getShapedRecipe(ItemStack par1) { List<IRecipe> recipeList = CraftingManager.getInstance().getRecipeList(); for(int i = 0;i<recipeList.size();i++) { IRecipe currentRecipe = recipeList.get(i); if(currentRecipe instanceof ShapedRecipe) { ShapedRecipe yourRecipe = (ShapedRecipe) currentRecipe; if(ItemStacks.areItemStacksEqual(yourRecipe.getRecipeOutput();, par1) { return yourRecipe; } } } } With that you get The shaped Recipe! I hope it helps^^
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.