Cancellablepublic class CraftItemEvent extends InventoryClickEvent
Event.Resulttransaction| Constructor | Description |
|---|---|
CraftItemEvent(@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) |
| Modifier and Type | Method | Description |
|---|---|---|
@NotNull CraftingInventory |
getInventory() |
Gets the primary Inventory involved in this transaction
|
@NotNull 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(@NotNull
@NotNull Recipe recipe,
@NotNull
@NotNull InventoryView what,
@NotNull
@NotNull InventoryType.SlotType type,
int slot,
@NotNull
@NotNull ClickType click,
@NotNull
@NotNull InventoryAction action)
public 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)
@NotNull public @NotNull Recipe getRecipe()
@NotNull public @NotNull CraftingInventory getInventory()
InventoryEventgetInventory in class InventoryEventCopyright © 2020. All rights reserved.