Enum Class GangCreateResult
- All Implemented Interfaces:
Serializable
,Comparable<GangCreateResult>
,Constable
Enum representing possible results of an attempt to create a gang.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe creation event was cancelled during event handling.Gang name contains color codes, which are not allowed.Gang name was not provided or is empty.Gang name is restricted and cannot be used.A gang with such a name already exists.Gang name is too long.The player attempting to create a gang already belongs to one.Gang was created successfully. -
Method Summary
Modifier and TypeMethodDescriptionstatic GangCreateResult
Returns the enum constant of this class with the specified name.static GangCreateResult[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
Gang was created successfully. -
NAME_RESTRICTED
Gang name is restricted and cannot be used. -
NAME_TOO_LONG
Gang name is too long. -
NAME_CONTAINS_COLORS
Gang name contains color codes, which are not allowed. -
NAME_TAKEN
A gang with such a name already exists. -
NAME_EMPTY
Gang name was not provided or is empty. -
PLAYER_HAS_GANG
The player attempting to create a gang already belongs to one. -
EVENT_CANCELLED
The creation event was cancelled during event handling.
-
-
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
-