Enum Class InventoryClickType
- All Implemented Interfaces:
Serializable, Comparable<InventoryClickType>, Constable
A wrapper enum for Bukkit's ClickType to avoid import conflicts.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.event.inventory.ClickTypeasBukkit()Gets the underlying Bukkit ClickType.booleanbooleanbooleanbooleanbooleanbooleanstatic InventoryClickTypeof(org.bukkit.event.inventory.ClickType bukkit) Converts from Bukkit ClickType to InventoryClickType.static InventoryClickTypeReturns the enum constant of this class with the specified name.static InventoryClickType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
LEFT
-
SHIFT_LEFT
-
RIGHT
-
SHIFT_RIGHT
-
WINDOW_BORDER_LEFT
-
WINDOW_BORDER_RIGHT
-
MIDDLE
-
NUMBER_KEY
-
DOUBLE_CLICK
-
DROP
-
CONTROL_DROP
-
CREATIVE
-
SWAP_OFFHAND
-
UNKNOWN
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
of
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()
-