Enum Class God
- All Implemented Interfaces:
Serializable
,Comparable<God>
,Constable
Indicates whether or not a character is a normal player, a god,
a bot or a mob or a shopkeeper.
- Author:
- maartenl
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMeans this user is an administrator/deputy of the mud. -
Method Summary
Modifier and TypeMethodDescriptionstatic God
Returns the enum based on a numerical value.int
getValue()
Returns the numerical value of this enum.static God
Returns the enum constant of this class with the specified name.static God[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT_USER
-
GOD
Means this user is an administrator/deputy of the mud. -
BOT
-
MOB
-
SHOPKEEPER
-
-
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
-
get
-
getValue
public int getValue()Returns the numerical value of this enum.- Returns:
- integer
-