类 CraftItemEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
org.bukkit.event.inventory.InventoryInteractEvent
org.bukkit.event.inventory.InventoryClickEvent
org.bukkit.event.inventory.CraftItemEvent
- 所有已实现的接口:
Cancellable
当一个物品被合成的时候触发这个事件.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
Event.Result
-
字段概要
从类继承的字段 org.bukkit.event.inventory.InventoryEvent
transaction
-
构造器概要
构造器说明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) -
方法概要
修饰符和类型方法说明获取此事件涉及的主要物品栏.获取合成出该物品所用的合成公式.从类继承的方法 org.bukkit.event.inventory.InventoryClickEvent
getAction, getClick, getClickedInventory, getCurrentItem, getCursor, getHandlerList, getHandlers, getHotbarButton, getRawSlot, getSlot, getSlotType, isLeftClick, isRightClick, isShiftClick, setCurrentItem, setCursor
从类继承的方法 org.bukkit.event.inventory.InventoryInteractEvent
getResult, getWhoClicked, isCancelled, setCancelled, setResult
从类继承的方法 org.bukkit.event.inventory.InventoryEvent
getView, getViewers
从类继承的方法 org.bukkit.event.Event
getEventName, isAsynchronous
-
构造器详细资料
-
CraftItemEvent
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) -
CraftItemEvent
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)
-
-
方法详细资料
-
getRecipe
获取合成出该物品所用的合成公式.- 返回:
- 被合成出来的物品所用的合成公式
-
getInventory
从类复制的说明:InventoryEvent
获取此事件涉及的主要物品栏.原文:Gets the primary Inventory involved in this transaction
- 覆盖:
getInventory
在类中InventoryEvent
- 返回:
- 顶部背包
-