[Bleeding] CraftItemEvent.getInventory() now returns CraftingInventory for convenience.

This commit is contained in:
Celtic Minstrel 2012-03-12 23:11:49 -04:00 committed by EvilSeph
parent e10a43a410
commit f528e62a84

View File

@ -1,6 +1,7 @@
package org.bukkit.event.inventory; package org.bukkit.event.inventory;
import org.bukkit.event.inventory.InventoryType.SlotType; import org.bukkit.event.inventory.InventoryType.SlotType;
import org.bukkit.inventory.CraftingInventory;
import org.bukkit.inventory.InventoryView; import org.bukkit.inventory.InventoryView;
import org.bukkit.inventory.Recipe; import org.bukkit.inventory.Recipe;
@ -18,4 +19,9 @@ public class CraftItemEvent extends InventoryClickEvent {
public Recipe getRecipe() { public Recipe getRecipe() {
return recipe; return recipe;
} }
@Override
public CraftingInventory getInventory() {
return (CraftingInventory) super.getInventory();
}
} }