Package studio.magemonkey.fabled.data
Enum Class Click
- All Implemented Interfaces:
Serializable
,Comparable<Click>
,Constable
Represents a single click in a click combination
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionstatic Click
getById
(int id) Retrieves a Click by ID.static Click
Retrieves a Click by name.int
getId()
getKey()
getName()
Retrieves the formatted name of the click typestatic Click
Returns the enum constant of this class with the specified name.static Click[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEFT
-
RIGHT
-
SHIFT
-
LEFT_SHIFT
-
RIGHT_SHIFT
-
SPACE
-
Q
-
F
-
-
Field Details
-
BITS
public static final int BITS- See Also:
-
BIT_MASK
public static final int BIT_MASK- See Also:
-
MAX_COMBO_SIZE
public static final int MAX_COMBO_SIZE- See Also:
-
-
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
-
getById
Retrieves a Click by ID. If an invalid ID is provided, this will instead return null.- Parameters:
id
- click ID- Returns:
- Click enum value or null if not found
-
getByName
Retrieves a Click by name. If an invalid name is provided, this will return null instead.- Parameters:
name
- click name- Returns:
- Click enum value or null if not found
-
getId
public int getId()- Returns:
- numeric ID of the click type
-
getKey
- Returns:
- config key for the click
-
getName
Retrieves the formatted name of the click type- Returns:
- formatted click type name
-