Enum Class ApiVersion

java.lang.Object
java.lang.Enum<ApiVersion>
xyz.janboerman.scalaloader.plugin.description.ApiVersion
All Implemented Interfaces:
Serializable, Comparable<ApiVersion>, Constable

public enum ApiVersion extends Enum<ApiVersion>
Representions for different versions of bukkit's API.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Signals that the ScalaPlugin was based on Bukkit 1.12.2 or earlier
    Signals that the ScalaPlugin was created to be compatible with Bukkit 1.13
    Signals that the ScalaPlugin was created to be compatible with Bukkit 1.14
    Signals that the ScalaPlugin was created to be compatible with Bukkit 1.15
    Signals that the ScalaPlugin was created to be compatible with Bukkit 1.16
    Signals that the ScalaPlugin was created to be compatible with Bukkit 1.17
    Signals that the ScalaPlugin was created to be compatible with Bukkit 1.18
    Signals that the ScalaPlugin was created to be compatible with Bukkit 1.19
    Signals that the ScalaPlugin was created to be compatible with Bukkit 1.20
    Signals that the ScalaPlugin was created to be compatible with Bukkit 1.21
    Signals that the ScalaPlugin was created to be compatible with Bukkit 1.22
    Signals that the ScalaPlugin was created to be compatible with Bukkit 1.23
    Signals that the ScalaPlugin was created to be compatible with Bukkit 1.24
    Signals that the ScalaPlugin was created to be compatible with Bukkit 1.25
  • Method Summary

    Modifier and Type
    Method
    Description
    static ApiVersion
    byVersion(String versionString)
    Get the ApiVersion from the version string.
    Return the value for the api-version key.
    static ApiVersion
    Get the latest version that is supported by the server that ScalaLoader currently runs on.
    static ApiVersion
    Returns the enum constant of this class with the specified name.
    static ApiVersion[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • LEGACY

      public static final ApiVersion LEGACY
      Signals that the ScalaPlugin was based on Bukkit 1.12.2 or earlier
    • v1_13

      public static final ApiVersion v1_13
      Signals that the ScalaPlugin was created to be compatible with Bukkit 1.13
    • v1_14

      public static final ApiVersion v1_14
      Signals that the ScalaPlugin was created to be compatible with Bukkit 1.14
    • v1_15

      public static final ApiVersion v1_15
      Signals that the ScalaPlugin was created to be compatible with Bukkit 1.15
    • v1_16

      public static final ApiVersion v1_16
      Signals that the ScalaPlugin was created to be compatible with Bukkit 1.16
    • v1_17

      public static final ApiVersion v1_17
      Signals that the ScalaPlugin was created to be compatible with Bukkit 1.17
    • v1_18

      public static final ApiVersion v1_18
      Signals that the ScalaPlugin was created to be compatible with Bukkit 1.18
    • v1_19

      public static final ApiVersion v1_19
      Signals that the ScalaPlugin was created to be compatible with Bukkit 1.19
    • v1_20

      public static final ApiVersion v1_20
      Signals that the ScalaPlugin was created to be compatible with Bukkit 1.20
    • v1_21

      public static final ApiVersion v1_21
      Signals that the ScalaPlugin was created to be compatible with Bukkit 1.21
    • v1_22

      public static final ApiVersion v1_22
      Signals that the ScalaPlugin was created to be compatible with Bukkit 1.22
    • v1_23

      public static final ApiVersion v1_23
      Signals that the ScalaPlugin was created to be compatible with Bukkit 1.23
    • v1_24

      public static final ApiVersion v1_24
      Signals that the ScalaPlugin was created to be compatible with Bukkit 1.24
    • v1_25

      public static final ApiVersion v1_25
      Signals that the ScalaPlugin was created to be compatible with Bukkit 1.25
  • Method Details

    • values

      public static ApiVersion[] 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 ApiVersion 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
    • getVersionString

      public String getVersionString()
      Return the value for the api-version key.
      Returns:
      the api-version string, or null if this ApiVersion is LEGACY.
    • latest

      public static ApiVersion latest()
      Get the latest version that is supported by the server that ScalaLoader currently runs on.
      Returns:
      the latest supported Bukkit API version
    • byVersion

      public static ApiVersion byVersion(String versionString)
      Get the ApiVersion from the version string.
      Parameters:
      versionString - the api-version string as defined in the plugin.yml
      Returns:
      the ApiVersion