# 枚举的使用
org.bukkit.event.inventory.InventoryType.SlotType

使用InventoryType.SlotType的程序包
程序包
说明
org.bukkit.event.inventory
与`物品栏`操作相关的`事件`.
org.bukkit.inventory
参与操作玩家物品栏和物品交互的类.

- ## org.bukkit.event.inventory中InventoryType.SlotType的使用

  返回InventoryType.SlotType的org.bukkit.event.inventory中的方法
  修饰符和类型
  方法
  说明
  `@NotNull InventoryType.SlotType`
  InventoryClickEvent.`getSlotType()`
  获取被点击的格子的类型.
  `static InventoryType.SlotType`
  InventoryType.SlotType.`valueOf(String name)`
  返回带有指定名称的该类型的枚举常量。
  `static InventoryType.SlotType[]`
  InventoryType.SlotType.`values()`
  按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
  参数类型为InventoryType.SlotType的org.bukkit.event.inventory中的构造器
  限定符
  构造器
  说明
  ``
  `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)`
  ``
  `InventoryClickEvent(@NotNull InventoryView view, @NotNull InventoryType.SlotType type, int slot, @NotNull ClickType click, @NotNull InventoryAction action)`
  ``
  `InventoryClickEvent(@NotNull InventoryView view, @NotNull InventoryType.SlotType type, int slot, @NotNull ClickType click, @NotNull InventoryAction action, int key)`
  ``
  `InventoryCreativeEvent(@NotNull InventoryView what, @NotNull InventoryType.SlotType type, int slot, @NotNull ItemStack newItem)`
  ``
  `SmithItemEvent(@NotNull InventoryView view, InventoryType.SlotType type, int slot, @NotNull ClickType click, @NotNull InventoryAction action)`
  ``
  `SmithItemEvent(@NotNull InventoryView view, InventoryType.SlotType type, int slot, @NotNull ClickType click, @NotNull InventoryAction action, int key)`

- ## org.bukkit.inventory中InventoryType.SlotType的使用

  返回InventoryType.SlotType的org.bukkit.inventory中的方法
  修饰符和类型
  方法
  说明
  `InventoryType.SlotType`
  InventoryView.`getSlotType(int slot)`
  Determine the type of the slot by its raw slot ID.