Cancellablepublic class CraftItemEvent extends InventoryClickEvent
Event.Resulttransaction| Constructor | Description |
|---|---|
CraftItemEvent(Recipe recipe,
InventoryView what,
InventoryType.SlotType type,
int slot,
ClickType click,
InventoryAction action) |
|
CraftItemEvent(Recipe recipe,
InventoryView what,
InventoryType.SlotType type,
int slot,
ClickType click,
InventoryAction action,
int key) |
| Modifier and Type | Method | Description |
|---|---|---|
CraftingInventory |
getInventory() |
Gets the primary Inventory involved in this transaction
|
Recipe |
getRecipe() |
getEventName, isAsynchronousgetAction, getClick, getClickedInventory, getCurrentItem, getCursor, getHandlerList, getHandlers, getHotbarButton, getRawSlot, getSlot, getSlotType, isLeftClick, isRightClick, isShiftClick, setCurrentItem, setCursorgetView, getViewersgetResult, getWhoClicked, isCancelled, setCancelled, setResultpublic CraftItemEvent(Recipe recipe, InventoryView what, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action)
public CraftItemEvent(Recipe recipe, InventoryView what, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action, int key)
public Recipe getRecipe()
public CraftingInventory getInventory()
InventoryEventgetInventory in class InventoryEventCopyright © 2018. All rights reserved.