Package dev.le_app.mcss_api_java
Enum Class PlayerRequirement
- All Implemented Interfaces:
Serializable,Comparable<PlayerRequirement>,Constable
The player requirement for a task to be executed
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe task will be executed only if the server is not emptyThe taks will be executed only if the server is emptyThe task will be executed regardless of the player count -
Method Summary
Modifier and TypeMethodDescriptionstatic PlayerRequirementGets the player requirement from the value.getValue()Gets associated value for the player requirement - Used for API requests.static PlayerRequirementReturns the enum constant of this class with the specified name.static PlayerRequirement[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMPTY
The taks will be executed only if the server is empty -
AT_LEAST_ONE
The task will be executed only if the server is not empty -
NONE
The task will be executed regardless of the player count
-
-
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
-
getValue
Gets associated value for the player requirement - Used for API requests.- Returns:
- The player requirement as INT.
-
findByVal
Gets the player requirement from the value.- Parameters:
abbr- The value to get the player requirement from.- Returns:
- The player requirement.
-