public class CraftItemEvent extends InventoryClickEvent
Event.Resulttransaction| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
CraftingInventory |
getInventory()
获取此事件涉及的主要物品栏.
|
Recipe |
getRecipe()
获取合成出该物品所用的合成公式.
|
getAction, getClick, getCurrentItem, getCursor, getHandlerList, getHandlers, getHotbarButton, getRawSlot, getSlot, getSlotType, isLeftClick, isRightClick, isShiftClick, setCurrentItem, setCursorgetResult, getWhoClicked, isCancelled, setCancelled, setResultgetView, getViewersgetEventName, isAsynchronouspublic 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()
InventoryEvent原文:Gets the primary Inventory involved in this transaction
getInventory 在类中 InventoryEvent