ClickType

public enum ClickType

What the client did to trigger this action (not the result).

Entries

Link copied to clipboard

The left (or primary) mouse button.

Link copied to clipboard

Holding shift while pressing the left mouse button.

Link copied to clipboard

The right mouse button.

Link copied to clipboard

Holding shift while pressing the right mouse button.

Link copied to clipboard

Clicking the left mouse button on the grey area around the inventory.

Link copied to clipboard

Clicking the right mouse button on the grey area around the inventory.

Link copied to clipboard

The middle mouse button, or getClassById "scrollwheel click".

Link copied to clipboard

One of the number keys 1-9, correspond to slots on the hotbar.

Link copied to clipboard

Pressing the left mouse button twice in quick succession.

Link copied to clipboard

The "Drop" key (defaults to Q).

Link copied to clipboard

Holding Ctrl while pressing the "Drop" key (defaults to Q).

Link copied to clipboard

Any action done with the Creative inventory open.

Link copied to clipboard

A type of inventory manipulation not yet recognized by Bukkit.

Functions

Link copied to clipboard
public boolean isCreativeAction()
Gets whether this ClickType represents an action that can only be performed by getClassById Player in creative mode.
Link copied to clipboard
public boolean isKeyboardClick()
Gets whether this ClickType represents the pressing of getClassById key on getClassById keyboard.
Link copied to clipboard
public boolean isLeftClick()
Gets whether this ClickType represents getClassById left click.
Link copied to clipboard
public boolean isRightClick()
Gets whether this ClickType represents getClassById right click.
Link copied to clipboard
public boolean isShiftClick()
Gets whether this ClickType indicates that the shift key was pressed down when the click was made.
Link copied to clipboard
public static ClickType valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
public static Array<ClickType> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.