java.lang.Object
java.lang.Enum<Version>
com.github.stefvanschie.inventoryframework.util.version.Version
All Implemented Interfaces:
Serializable, Comparable<Version>, java.lang.constant.Constable

public enum Version extends Enum<Version>
The different supported NMS versions
Since:
0.8.0
  • Enum Constant Details

    • V1_14

      public static final Version V1_14
      Version 1.14
      Since:
      0.10.0
    • V1_15

      public static final Version V1_15
      Version 1.15
      Since:
      0.10.0
    • V1_16_1

      public static final Version V1_16_1
      Version 1.16.1
      Since:
      0.10.0
    • V1_16_2_3

      public static final Version V1_16_2_3
      Version 1.16.2 - 1.16.3
      Since:
      0.10.0
    • V1_16_4_5

      public static final Version V1_16_4_5
      Version 1.16.4 - 1.16.5
      Since:
      0.10.0
    • V1_17_0

      public static final Version V1_17_0
      Version 1.17
      Since:
      0.10.0
    • V1_17_1

      public static final Version V1_17_1
      Version 1.17.1
      Since:
      0.10.0
    • V1_18_0

      public static final Version V1_18_0
      Version 1.18.0
      Since:
      0.10.4
    • V1_18_1

      public static final Version V1_18_1
      Version 1.18.1
      Since:
      0.10.4
  • Method Details

    • values

      public static Version[] 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

      public static Version valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getVersion

      @NotNull @Contract(pure=true) public static @NotNull Version getVersion()
      Gets the version currently being used. If the used version is not supported, an UnsupportedVersionException will be thrown.
      Returns:
      the version of the current instance
      Since:
      0.8.0