[Bleeding] CraftItemEvent.getInventory() now returns CraftingInventory for convenience.
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
This commit is contained in:
parent
0635b1f496
commit
ade2f5568b
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue