[Bleeding] Recipe API improvements and fixes. Addresses BUKKIT-738 and BUKKIT-624
Add a recipe iterator to make it possible to retrieve and remove recipes (BUKKIT-738), and updated the recipe classes to not clip the data to 127 (BUKKIT-624)
This commit is contained in:
committed by
EvilSeph
parent
84ecdb5439
commit
326091c130
@@ -6,13 +6,13 @@ import java.util.Map;
|
||||
public class FurnaceRecipes {
|
||||
|
||||
private static final FurnaceRecipes a = new FurnaceRecipes();
|
||||
private Map b = new HashMap();
|
||||
public Map b = new HashMap(); // CraftBukkit - private -> public
|
||||
|
||||
public static final FurnaceRecipes getInstance() {
|
||||
return a;
|
||||
}
|
||||
|
||||
private FurnaceRecipes() {
|
||||
public FurnaceRecipes() { // CraftBukkit - private -> public
|
||||
this.registerRecipe(Block.IRON_ORE.id, new ItemStack(Item.IRON_INGOT));
|
||||
this.registerRecipe(Block.GOLD_ORE.id, new ItemStack(Item.GOLD_INGOT));
|
||||
this.registerRecipe(Block.DIAMOND_ORE.id, new ItemStack(Item.DIAMOND));
|
||||
|
||||
Reference in New Issue
Block a user