Created
June 16, 2013 15:17
-
-
Save frymaster/5792351 to your computer and use it in GitHub Desktop.
remove two recipes. Taken from http://dev.bukkit.org/bukkit-mods/tesseractuhc/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ItemStack goldenApple = new ItemStack(Material.GOLDEN_APPLE, 1, (short) 0); | |
ItemStack glisteringMelon = new ItemStack(Material.SPECKLED_MELON); | |
Iterator<Recipe> recipes = Bukkit.recipeIterator(); | |
while(recipes.hasNext()) { | |
Recipe recipe = recipes.next(); | |
if(recipe.getResult().equals(goldenApple) || recipe.getResult().equals(glisteringMelon)) | |
recipes.remove(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment