Enum Version
- All Implemented Interfaces:
Serializable
,Comparable<Version>
,java.lang.constant.Constable
The different supported NMS versions
- Since:
- 0.8.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
-
Enum Constant Details
-
V1_14
Version 1.14- Since:
- 0.10.0
-
V1_15
Version 1.15- Since:
- 0.10.0
-
V1_16_1
Version 1.16.1- Since:
- 0.10.0
-
V1_16_2_3
Version 1.16.2 - 1.16.3- Since:
- 0.10.0
-
V1_16_4_5
Version 1.16.4 - 1.16.5- Since:
- 0.10.0
-
V1_17_0
Version 1.17- Since:
- 0.10.0
-
V1_17_1
Version 1.17.1- Since:
- 0.10.0
-
V1_18_0
Version 1.18.0- Since:
- 0.10.4
-
V1_18_1
Version 1.18.1- Since:
- 0.10.4
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getVersion
Gets the version currently being used. If the used version is not supported, anUnsupportedVersionException
will be thrown.- Returns:
- the version of the current instance
- Since:
- 0.8.0
-