枚举的使用
org.bukkit.event.inventory.InventoryAction
使用InventoryAction的程序包
-
org.bukkit.event.inventory中InventoryAction的使用
修饰符和类型方法说明InventoryClickEvent.getAction()Gets the InventoryAction that triggered this event.static InventoryAction返回带有指定名称的该类型的枚举常量。static InventoryAction[]InventoryAction.values()按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。参数类型为InventoryAction的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) 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)