Package com.tcoded.folialib.enums
Enum Class ImplementationType
- All Implemented Interfaces:
Serializable,Comparable<ImplementationType>,Constable
This enum is used to determine the server implementation type.
The enum is ordered by PRIORITY. The first implementation that passes all tests will be used.
A server is considered 'legacy' if it does not support task consumers. This feature was added in 1.13.2.
This means that even 1.13.1 servers are considered legacy servers as they do not support highly important
features that developers may want to use. Refer to ServerImplementation.runLater(Consumer, long)
for more information on the behavior of task consumer-enabled methods on servers which do not support this feature.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionString[]getTests()booleanstatic ImplementationTypeReturns the enum constant of this class with the specified name.static ImplementationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FOLIA
-
PAPER
-
LEGACY_PAPER
-
SPIGOT
-
LEGACY_SPIGOT
-
UNKNOWN
-
-
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
-
getImplementationClassName
-
getTests
-
getClassNames
-
selfCheck
public boolean selfCheck()
-