Package games.stendhal.client.entity
Enum Class StatusID
- All Implemented Interfaces:
Serializable
,Comparable<StatusID>
,Constable
Status IDs.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the attribute corresponding to the status.static StatusID
getStatusID(String status)
Find the status ID using the status name.static StatusID
Returns the enum constant of this class with the specified name.static StatusID[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HEALER
-
MERCHANT
-
CONFUSE
-
POISON
-
SHOCK
-
ZOMBIE
-
HEAVY
-
-
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
-
getAttribute
Get the attribute corresponding to the status.- Returns:
- attribute name
-
getStatusID
Find the status ID using the status name.- Parameters:
status
- Name of status- Returns:
- Status ID, or
null
if no status ID matches the name
-