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>
Represents server's version.
  • Enum Constant Details

    • V1_20_R4

      public static final NMSVersion V1_20_R4
      1.20.5-1.20.6
    • V1_21_R1

      public static final NMSVersion V1_21_R1
      1.21-1.21.1
    • V1_21_R2

      public static final NMSVersion V1_21_R2
      1.21.2-1.21.3
    • V1_21_R3

      public static final NMSVersion V1_21_R3
      1.21.4
    • V1_21_R4

      public static final NMSVersion V1_21_R4
      1.21.5
    • V1_21_R5

      public static final NMSVersion V1_21_R5
      1.21.6-1.21.8
  • 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()
    • latest

      @NotNull public static @NotNull NMSVersion latest()