Enum Constant and Description |
---|
CUSTOM
Use this to call your own click type.
|
LEFT_CLICK
Player has swung their arm.
|
LEFT_CLICK_ENTITY
For any instance of right clicking that isn't with an entity or a block
(Right clicking air will not work).
|
RIGHT_CLICK
Player has left clicked and hit an entity.
|
RIGHT_CLICK_BLOCK
Specifically for right clicking a block.
|
RIGHT_CLICK_ENTITY
Specifically for right clicking an entity.
|
SHIFT_DOWN
The shift key being released.
|
SHIFT_UP
The shift key being pressed.
|
Modifier and Type | Method and Description |
---|---|
static ClickType |
valueOf(java.lang.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 CUSTOM
public static final ClickType LEFT_CLICK
public static final ClickType LEFT_CLICK_ENTITY
public static final ClickType RIGHT_CLICK
public static final ClickType RIGHT_CLICK_ENTITY
public static final ClickType RIGHT_CLICK_BLOCK
public static final ClickType SHIFT_DOWN
public static final ClickType SHIFT_UP
public static ClickType[] values()
for (ClickType c : ClickType.values()) System.out.println(c);
public static ClickType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null