程序包 org.bukkit.event.inventory

# 类 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`

public class InventoryCreativeEvent extends InventoryClickEvent
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)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull ItemStack`
  `getCursor()`
  获取被光标所拿起来的物品
  `void`
  `setCursor(@NotNull ItemStack item)`
  Sets the item on the cursor.

  ### 从类继承的方法 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`

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### InventoryCreativeEvent

    public InventoryCreativeEvent(@NotNull @NotNull InventoryView what, @NotNull @NotNull InventoryType.SlotType type, int slot, @NotNull @NotNull ItemStack newItem)

- ## 方法详细资料

  - ### getCursor

    @NotNull public @NotNull ItemStack getCursor()
    从类复制的说明: `InventoryClickEvent`
    获取被光标所拿起来的物品

    原文:Gets the current ItemStack on the cursor.

    覆盖:
      `getCursor` 在类中 `InventoryClickEvent`
    返回:
      被光标所拿起来的物品

  - ### setCursor

    public void setCursor(@NotNull @NotNull ItemStack item)
    从类复制的说明: `InventoryClickEvent`
    Sets the item on the cursor.
    覆盖:
      `setCursor` 在类中 `InventoryClickEvent`
    参数:
      `item` - the new cursor item