Enum Class ImplementationType

java.lang.Object
java.lang.Enum<ImplementationType>
com.tcoded.folialib.enums.ImplementationType
All Implemented Interfaces:
Serializable, Comparable<ImplementationType>, Constable

public enum ImplementationType extends Enum<ImplementationType>
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.

  • Enum Constant Details

  • Method Details

    • values

      public static ImplementationType[] 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

      public static ImplementationType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getImplementationClassName

      public String getImplementationClassName()
    • getTests

      public Supplier<Boolean>[] getTests()
    • getClassNames

      public String[] getClassNames()
    • selfCheck

      public boolean selfCheck()