diff options
author | Celtic Minstrel <celtic.minstrel.ca@some.place> | 2012-03-12 23:11:49 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-15 22:24:01 -0400 |
commit | f528e62a84f859315a3fe79a245386c4ae578270 (patch) | |
tree | d8eaf6b20e46b79e337ad4019fc21aae1d77b1b2 /src/main | |
parent | e10a43a4108334eb869533bc551bccf3ac84c43c (diff) | |
download | bukkit-f528e62a84f859315a3fe79a245386c4ae578270.tar bukkit-f528e62a84f859315a3fe79a245386c4ae578270.tar.gz bukkit-f528e62a84f859315a3fe79a245386c4ae578270.tar.lz bukkit-f528e62a84f859315a3fe79a245386c4ae578270.tar.xz bukkit-f528e62a84f859315a3fe79a245386c4ae578270.zip |
[Bleeding] CraftItemEvent.getInventory() now returns CraftingInventory for convenience.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/event/inventory/CraftItemEvent.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/inventory/CraftItemEvent.java b/src/main/java/org/bukkit/event/inventory/CraftItemEvent.java index aceea83c..264ab0a9 100644 --- a/src/main/java/org/bukkit/event/inventory/CraftItemEvent.java +++ b/src/main/java/org/bukkit/event/inventory/CraftItemEvent.java @@ -1,6 +1,7 @@ package org.bukkit.event.inventory; import org.bukkit.event.inventory.InventoryType.SlotType; +import org.bukkit.inventory.CraftingInventory; import org.bukkit.inventory.InventoryView; import org.bukkit.inventory.Recipe; @@ -18,4 +19,9 @@ public class CraftItemEvent extends InventoryClickEvent { public Recipe getRecipe() { return recipe; } + + @Override + public CraftingInventory getInventory() { + return (CraftingInventory) super.getInventory(); + } } |