Package org.bukkit.event.inventory
Class CraftItemEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
org.bukkit.event.inventory.InventoryInteractEvent
org.bukkit.event.inventory.InventoryClickEvent
org.bukkit.event.inventory.CraftItemEvent
- All Implemented Interfaces:
- Cancellable
Called when the recipe of an Item is completed inside a crafting matrix.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.inventory.InventoryEventtransaction
- 
Constructor SummaryConstructorsConstructorDescriptionCraftItemEvent(@NotNull Recipe recipe, @NotNull InventoryView what, @NotNull InventoryType.SlotType type, int slot, @NotNull ClickType click, @NotNull InventoryAction action) CraftItemEvent(@NotNull Recipe recipe, @NotNull InventoryView what, @NotNull InventoryType.SlotType type, int slot, @NotNull ClickType click, @NotNull InventoryAction action, int key) 
- 
Method SummaryModifier and TypeMethodDescriptionGets the primary Inventory involved in this transactionMethods inherited from class org.bukkit.event.inventory.InventoryClickEventgetAction, getClick, getClickedInventory, getCurrentItem, getCursor, getHandlerList, getHandlers, getHotbarButton, getRawSlot, getSlot, getSlotType, isLeftClick, isRightClick, isShiftClick, setCurrentItem, setCursorMethods inherited from class org.bukkit.event.inventory.InventoryInteractEventgetResult, getWhoClicked, isCancelled, setCancelled, setResultMethods inherited from class org.bukkit.event.inventory.InventoryEventgetView, getViewersMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
CraftItemEventpublic CraftItemEvent(@NotNull @NotNull Recipe recipe, @NotNull @NotNull InventoryView what, @NotNull @NotNull InventoryType.SlotType type, int slot, @NotNull @NotNull ClickType click, @NotNull @NotNull InventoryAction action) 
- 
CraftItemEventpublic CraftItemEvent(@NotNull @NotNull Recipe recipe, @NotNull @NotNull InventoryView what, @NotNull @NotNull InventoryType.SlotType type, int slot, @NotNull @NotNull ClickType click, @NotNull @NotNull InventoryAction action, int key) 
 
- 
- 
Method Details- 
getRecipe- Returns:
- A copy of the current recipe on the crafting matrix.
 
- 
getInventoryDescription copied from class:InventoryEventGets the primary Inventory involved in this transaction- Overrides:
- getInventoryin class- InventoryEvent
- Returns:
- The upper inventory.
 
 
-