org.bukkit.event.inventory
Class CraftItemEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
org.bukkit.event.inventory.InventoryClickEvent
org.bukkit.event.inventory.CraftItemEvent
- All Implemented Interfaces:
- Cancellable
public class CraftItemEvent
- extends InventoryClickEvent
Methods inherited from class org.bukkit.event.inventory.InventoryClickEvent |
getCurrentItem, getCursor, getHandlerList, getHandlers, getRawSlot, getResult, getSlot, getSlotType, getWhoClicked, isCancelled, isLeftClick, isRightClick, isShiftClick, setCancelled, setCurrentItem, setCursor, setResult |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CraftItemEvent
public CraftItemEvent(Recipe recipe,
InventoryView what,
InventoryType.SlotType type,
int slot,
boolean right,
boolean shift)
getRecipe
public Recipe getRecipe()
- Returns:
- A copy of the current recipe on the crafting matrix.
getInventory
public CraftingInventory getInventory()
- Description copied from class:
InventoryEvent
- Gets the primary Inventory involved in this transaction
- Overrides:
getInventory
in class InventoryEvent
- Returns:
- The upper inventory.
Copyright © 2013. All Rights Reserved.