Enum Class NMSVersion

java.lang.Object
java.lang.Enum<NMSVersion>
kr.toxicity.model.api.nms.NMSVersion
All Implemented Interfaces:
Serializable, Comparable<NMSVersion>, Constable

public enum NMSVersion extends Enum<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
  • Enum Constant Details

    • V1_21_R1

      public static final NMSVersion V1_21_R1
      Minecraft 1.21 - 1.21.1
      Since:
      1.15.2
    • V1_21_R3

      public static final NMSVersion V1_21_R3
      Minecraft 1.21.4
      Since:
      1.15.2
    • V1_21_R4

      public static final NMSVersion V1_21_R4
      Minecraft 1.21.5
      Since:
      1.15.2
    • V1_21_R5

      public static final NMSVersion V1_21_R5
      Minecraft 1.21.6 - 1.21.8
      Since:
      1.15.2
    • V1_21_R6

      public static final NMSVersion V1_21_R6
      Minecraft 1.21.9 - 1.21.10
      Since:
      1.15.2
    • V1_21_R7

      public static final NMSVersion V1_21_R7
      Minecraft 1.21.11
      Since:
      1.15.2
  • Method Details

    • values

      public static NMSVersion[] 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 NMSVersion 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
    • first

      @NotNull public static @NotNull NMSVersion first()
      Returns the oldest supported version.
      Returns:
      the first version enum
      Since:
      1.15.2
    • latest

      @NotNull public static @NotNull NMSVersion latest()
      Returns the latest supported version.
      Returns:
      the last version enum
      Since:
      1.15.2