Enum Class VersionType

java.lang.Object
java.lang.Enum<VersionType>
com.viaversion.viaversion.api.protocol.version.VersionType
All Implemented Interfaces:
Serializable, Comparable<VersionType>, Constable

public enum VersionType extends Enum<VersionType>
Categories of Minecraft versions from classic to modern releases, ordered by date.
  • Enum Constant Details

    • CLASSIC

      public static final VersionType CLASSIC
      Classic versions of Minecraft (Classic 0.0.2a to 0.30).
    • ALPHA_INITIAL

      public static final VersionType ALPHA_INITIAL
      Alpha versions of Minecraft (Alpha 1.0.0 to 1.0.17).
    • ALPHA_LATER

      public static final VersionType ALPHA_LATER
      Alpha versions of Minecraft (Alpha 1.1.0 to 1.2.6).
    • BETA_INITIAL

      public static final VersionType BETA_INITIAL
      Beta versions of Minecraft (Beta 1.0 to 1.1_02).
    • BETA_LATER

      public static final VersionType BETA_LATER
      Beta versions of Minecraft (Beta 1.2 to 1.9-pre6/1.0.0-RC2).
    • RELEASE_INITIAL

      public static final VersionType RELEASE_INITIAL
      Pre-netty release versions of Minecraft (1.0.0 to the 1.7.2 snapshot 13w39b).
    • RELEASE

      public static final VersionType RELEASE
      Modern release versions of Minecraft (13w41a to latest).
    • SPECIAL

      public static final VersionType SPECIAL
      Any version that doesn't fit in the above categories (e.g. April Fools).

      Protocol versions using this type must override the compareTo method. Protocol versions using this type must add base protocols to the pipeline manually.

  • Method Details

    • values

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