NMSVersion

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

Entries

Link copied to clipboard

Minecraft 1.21.4

Link copied to clipboard

Minecraft 1.21.5

Link copied to clipboard

Minecraft 1.21.6 - 1.21.8

Link copied to clipboard

Minecraft 1.21.9 - 1.21.10

Link copied to clipboard

Minecraft 1.21.11

Link copied to clipboard

Minecraft 26.1.x

Functions

Link copied to clipboard
@NotNull
open fun first(): @NotNull NMSVersion
Returns the oldest supported version.
Link copied to clipboard
@NotNull
open fun latest(): @NotNull NMSVersion
Returns the latest supported version.
Link copied to clipboard
open fun valueOf(name: String): NMSVersion

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.)

Link copied to clipboard
open fun values(): Array<NMSVersion>

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.