类 InventoryCreativeEvent
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.InventoryCreativeEvent
- 所有已实现的接口:
Cancellable
This event is called when a player in creative mode puts down or picks up
an item in their inventory / hotbar and when they drop items from their
Inventory while in creative mode.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
Event.Result
-
字段概要
从类继承的字段 org.bukkit.event.inventory.InventoryEvent
transaction
-
构造器概要
构造器说明InventoryCreativeEvent
(@NotNull InventoryView what, @NotNull InventoryType.SlotType type, int slot, @NotNull ItemStack newItem) -
方法概要
从类继承的方法 org.bukkit.event.inventory.InventoryClickEvent
getAction, getClick, getClickedInventory, getCurrentItem, getHandlerList, getHandlers, getHotbarButton, getRawSlot, getSlot, getSlotType, isLeftClick, isRightClick, isShiftClick, setCurrentItem
从类继承的方法 org.bukkit.event.inventory.InventoryInteractEvent
getResult, getWhoClicked, isCancelled, setCancelled, setResult
从类继承的方法 org.bukkit.event.inventory.InventoryEvent
getInventory, getView, getViewers
从类继承的方法 org.bukkit.event.Event
getEventName, isAsynchronous
-
构造器详细资料
-
InventoryCreativeEvent
public InventoryCreativeEvent(@NotNull @NotNull InventoryView what, @NotNull @NotNull InventoryType.SlotType type, int slot, @NotNull @NotNull ItemStack newItem)
-
-
方法详细资料
-
getCursor
从类复制的说明:InventoryClickEvent
获取被光标所拿起来的物品原文:Gets the current ItemStack on the cursor.
- 覆盖:
getCursor
在类中InventoryClickEvent
- 返回:
- 被光标所拿起来的物品
-
setCursor
从类复制的说明:InventoryClickEvent
Sets the item on the cursor.- 覆盖:
setCursor
在类中InventoryClickEvent
- 参数:
item
- the new cursor item
-