|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SelectInventory.ClickType>
com.quartercode.quarterbukkit.api.SelectInventory.ClickType
public static enum SelectInventory.ClickType
This enum defines four different click types. Currently, there're four values: LEFT, RIGHT, LEFT_SHIFT, RIGHT_SHIFT. Every type has three methods which can output the concrete boolean values: public boolean isLeft() public boolean isRight() public boolean isShift()
Enum Constant Summary | |
---|---|
LEFT
A default left click. |
|
LEFT_SHIFT
A left click while holding shift. |
|
RIGHT
A default right click. |
|
RIGHT_SHIFT
A right click while holding shift. |
Method Summary | |
---|---|
static SelectInventory.ClickType |
getClickType(boolean left,
boolean right,
boolean shift)
|
boolean |
isLeft()
If the left mouse button was clicked. |
boolean |
isRight()
If the right mouse button was clicked. |
boolean |
isShift()
If shift was holded while clicking. |
static SelectInventory.ClickType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SelectInventory.ClickType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SelectInventory.ClickType LEFT
public static final SelectInventory.ClickType RIGHT
public static final SelectInventory.ClickType LEFT_SHIFT
public static final SelectInventory.ClickType RIGHT_SHIFT
Method Detail |
---|
public static SelectInventory.ClickType[] values()
for (SelectInventory.ClickType c : SelectInventory.ClickType.values()) System.out.println(c);
public static SelectInventory.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 name
java.lang.NullPointerException
- if the argument is nullpublic static SelectInventory.ClickType getClickType(boolean left, boolean right, boolean shift)
public boolean isLeft()
public boolean isRight()
public boolean isShift()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |