Enum Class StatusInstance.AllowStatus
java.lang.Object
java.lang.Enum<StatusInstance.AllowStatus>
net.mathias2246.buildmc.api.status.StatusInstance.AllowStatus
- All Implemented Interfaces:
Serializable, Comparable<StatusInstance.AllowStatus>, Constable
- Enclosing class:
StatusInstance
A simple enum to show if a player is allowed to use a
StatusInstance,
or if he doesn't fulfill all requirements.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe player is allowed to use this statusThe player is missing aPermissionto use this statusThe player is not allowed to use this statusThe player not in one of the requiredTeams -
Method Summary
Modifier and TypeMethodDescriptionstatic StatusInstance.AllowStatusReturns the enum constant of this class with the specified name.static StatusInstance.AllowStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALLOW
The player is allowed to use this status -
NOT_ALLOWED
The player is not allowed to use this status -
MISSING_PERMISSION
The player is missing aPermissionto use this status -
NOT_IN_TEAM
The player not in one of the requiredTeams
-
-
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
-