Enum Class InventoryClickType

java.lang.Object
java.lang.Enum<InventoryClickType>
com.github.darksoulq.abyssallib.server.event.InventoryClickType
All Implemented Interfaces:
Serializable, Comparable<InventoryClickType>, Constable

public enum InventoryClickType extends Enum<InventoryClickType>
A wrapper enum for Bukkit's ClickType to avoid import conflicts.
  • Enum Constant Details

  • Method Details

    • values

      public static InventoryClickType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static InventoryClickType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static InventoryClickType of(org.bukkit.event.inventory.ClickType bukkit)
      Converts from Bukkit ClickType to InventoryClickType.
    • asBukkit

      public org.bukkit.event.inventory.ClickType asBukkit()
      Gets the underlying Bukkit ClickType.
    • isKeyboardClick

      public boolean isKeyboardClick()
    • isMouseClick

      public boolean isMouseClick()
    • isCreativeAction

      public boolean isCreativeAction()
    • isRightClick

      public boolean isRightClick()
    • isLeftClick

      public boolean isLeftClick()
    • isShiftClick

      public boolean isShiftClick()