Cancellable
public class CraftItemEvent extends InventoryClickEvent
Event.Result
transaction
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, isAsynchronous
getAction, getClick, getClickedInventory, getCurrentItem, getCursor, getHandlerList, getHandlers, getHotbarButton, getRawSlot, getSlot, getSlotType, isLeftClick, isRightClick, isShiftClick, setCurrentItem, setCursor
getView, getViewers
getResult, getWhoClicked, isCancelled, setCancelled, setResult
public CraftItemEvent(@NotNull Recipe recipe, @NotNull InventoryView what, @NotNull InventoryType.SlotType type, int slot, @NotNull ClickType click, @NotNull InventoryAction action)
public CraftItemEvent(@NotNull Recipe recipe, @NotNull InventoryView what, @NotNull InventoryType.SlotType type, int slot, @NotNull ClickType click, @NotNull InventoryAction action, int key)
@NotNull public Recipe getRecipe()
@NotNull public CraftingInventory getInventory()
InventoryEvent
getInventory
in class InventoryEvent
Copyright © 2019. All rights reserved.