public enum ClickType extends Enum<ClickType>
| Enum Constant and Description | 
|---|
| CONTROL_DROPHolding Ctrl while pressing the "Drop" key (defaults to Q). | 
| CREATIVEAny action done with the Creative inventory open. | 
| DOUBLE_CLICKPressing the left mouse button twice in quick succession. | 
| DROPThe "Drop" key (defaults to Q). | 
| LEFTThe left (or primary) mouse button. | 
| MIDDLEThe middle mouse button, or a "scrollwheel click". | 
| NUMBER_KEYOne of the number keys 1-9, correspond to slots on the hotbar. | 
| RIGHTThe right mouse button. | 
| SHIFT_LEFTHolding shift while pressing the left mouse button. | 
| SHIFT_RIGHTHolding shift while pressing the right mouse button. | 
| UNKNOWNA type of inventory manipulation not yet recognized by Bukkit. | 
| WINDOW_BORDER_LEFTClicking the left mouse button on the grey area around the inventory. | 
| WINDOW_BORDER_RIGHTClicking the right mouse button on the grey area around the inventory. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isCreativeAction()Gets whether this ClickType represents an action that can only be
 performed by a Player in creative mode. | 
| boolean | isKeyboardClick()Gets whether this ClickType represents the pressing of a key on a
 keyboard. | 
| boolean | isLeftClick()Gets whether this ClickType represents a left click. | 
| boolean | isRightClick()Gets whether this ClickType represents a right click. | 
| boolean | isShiftClick()Gets whether this ClickType indicates that the shift key was pressed
 down when the click was made. | 
| static ClickType | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static ClickType[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final ClickType LEFT
public static final ClickType SHIFT_LEFT
public static final ClickType RIGHT
public static final ClickType SHIFT_RIGHT
public static final ClickType WINDOW_BORDER_LEFT
public static final ClickType WINDOW_BORDER_RIGHT
public static final ClickType MIDDLE
public static final ClickType NUMBER_KEY
public static final ClickType DOUBLE_CLICK
public static final ClickType DROP
public static final ClickType CONTROL_DROP
public static final ClickType CREATIVE
public static final ClickType UNKNOWN
This is only for transitional purposes on a new Minecraft update, and should never be relied upon.
Any ClickType.UNKNOWN is called on a best-effort basis.
public static ClickType[] values()
for (ClickType c : ClickType.values()) System.out.println(c);
public static ClickType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isKeyboardClick()
public boolean isCreativeAction()
public boolean isRightClick()
public boolean isLeftClick()
public boolean isShiftClick()
Copyright © 2015. All rights reserved.