Enum Class NMSVersion
- All Implemented Interfaces:
Serializable, Comparable<NMSVersion>, Constable
Enumerates supported Minecraft server versions and their associated metadata.
This enum maps internal version identifiers to Minecraft versions and resource pack formats.
- Since:
- 1.15.2
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull NMSVersionfirst()Returns the oldest supported version.static @NotNull NMSVersionlatest()Returns the latest supported version.static NMSVersionReturns the enum constant of this class with the specified name.static NMSVersion[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
V1_21_R3
-
V1_21_R4
-
V1_21_R5
-
V1_21_R6
-
V1_21_R7
-
V26_R1
-
-
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
-
first
Returns the oldest supported version.- Returns:
- the first version enum
- Since:
- 1.15.2
-
latest
Returns the latest supported version.- Returns:
- the last version enum
- Since:
- 1.15.2
-