Enum Class ActionTrigger
- All Implemented Interfaces:
Serializable, Comparable<ActionTrigger>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionrepresents any click interaction by a player.represents interactions invoked by the API.represents a left click interaction by a player.represents a right click interaction by a player. -
Method Summary
Modifier and TypeMethodDescriptionstatic ActionTriggerGets the ActionTrigger by its name.static ActionTriggerReturns the enum constant of this class with the specified name.static ActionTrigger[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANY_CLICK
represents any click interaction by a player. -
LEFT_CLICK
represents a left click interaction by a player. -
RIGHT_CLICK
represents a right click interaction by a player. -
CUSTOM
represents interactions invoked by the API.
-
-
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
-
getByName
Gets the ActionTrigger by its name.- Parameters:
name- the name of the ActionTrigger- Returns:
- the ActionTrigger or null if not found
-