public class CraftItemEvent extends InventoryClickEvent
Event.Result
transaction
构造器和说明 |
---|
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, setCursor
getResult, getWhoClicked, isCancelled, setCancelled, setResult
getView, getViewers
getEventName, isAsynchronous
public 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