Enum Class ApiVersion
- All Implemented Interfaces:
Serializable
,Comparable<ApiVersion>
,Constable
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 ConstantsEnum ConstantDescriptionSignals that the ScalaPlugin was based on Bukkit 1.12.2 or earlierSignals that the ScalaPlugin was created to be compatible with Bukkit 1.13Signals that the ScalaPlugin was created to be compatible with Bukkit 1.14Signals that the ScalaPlugin was created to be compatible with Bukkit 1.15Signals that the ScalaPlugin was created to be compatible with Bukkit 1.16Signals that the ScalaPlugin was created to be compatible with Bukkit 1.17Signals that the ScalaPlugin was created to be compatible with Bukkit 1.18Signals that the ScalaPlugin was created to be compatible with Bukkit 1.19Signals that the ScalaPlugin was created to be compatible with Bukkit 1.20Signals that the ScalaPlugin was created to be compatible with Bukkit 1.21Signals that the ScalaPlugin was created to be compatible with Bukkit 1.22Signals that the ScalaPlugin was created to be compatible with Bukkit 1.23Signals that the ScalaPlugin was created to be compatible with Bukkit 1.24Signals that the ScalaPlugin was created to be compatible with Bukkit 1.25 -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiVersion
Get the ApiVersion from the version string.Return the value for the api-version key.static ApiVersion
latest()
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[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEGACY
Signals that the ScalaPlugin was based on Bukkit 1.12.2 or earlier -
v1_13
Signals that the ScalaPlugin was created to be compatible with Bukkit 1.13 -
v1_14
Signals that the ScalaPlugin was created to be compatible with Bukkit 1.14 -
v1_15
Signals that the ScalaPlugin was created to be compatible with Bukkit 1.15 -
v1_16
Signals that the ScalaPlugin was created to be compatible with Bukkit 1.16 -
v1_17
Signals that the ScalaPlugin was created to be compatible with Bukkit 1.17 -
v1_18
Signals that the ScalaPlugin was created to be compatible with Bukkit 1.18 -
v1_19
Signals that the ScalaPlugin was created to be compatible with Bukkit 1.19 -
v1_20
Signals that the ScalaPlugin was created to be compatible with Bukkit 1.20 -
v1_21
Signals that the ScalaPlugin was created to be compatible with Bukkit 1.21 -
v1_22
Signals that the ScalaPlugin was created to be compatible with Bukkit 1.22 -
v1_23
Signals that the ScalaPlugin was created to be compatible with Bukkit 1.23 -
v1_24
Signals that the ScalaPlugin was created to be compatible with Bukkit 1.24 -
v1_25
Signals that the ScalaPlugin was created to be compatible with Bukkit 1.25
-
-
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
-
getVersionString
Return the value for the api-version key.- Returns:
- the api-version string, or null if this ApiVersion is
LEGACY
.
-
latest
Get the latest version that is supported by the server that ScalaLoader currently runs on.- Returns:
- the latest supported Bukkit API version
-
byVersion
Get the ApiVersion from the version string.- Parameters:
versionString
- the api-version string as defined in the plugin.yml- Returns:
- the ApiVersion
-