Interface IProtocol


public interface IProtocol
Contains information about a supported protocol version
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the datafix version of this protocol
    Returns the major release of this protocol.
    Gets the name of the major release of this protocol.
    If this protocol is a major release, returns a list of all minor releases (children) of this protocol, including this protocol.
    Returns the name of the Minecraft version that this protocol represents.
    int
    Returns the protocol version ID, to be compared with values in Protocols.
    boolean
    Returns whether this version is considered a major release, i.e.
    boolean
    Returns whether this protocol is only in beta support by multiconnect, and may have stability issues when connected.
  • Method Details

    • getValue

      int getValue()
      Returns the protocol version ID, to be compared with values in Protocols.
    • getName

      String getName()
      Returns the name of the Minecraft version that this protocol represents.
    • getDataVersion

      int getDataVersion()
      Returns the datafix version of this protocol
    • isMajorRelease

      boolean isMajorRelease()
      Returns whether this version is considered a major release, i.e. a parent of other protocols, where those protocols are subcategories. Note: the concept of a "major release" is not necessarily the same as semver. It is used to categorize versions (e.g. the 1.15 versions).
    • getMajorRelease

      IProtocol getMajorRelease()
      Returns the major release of this protocol. Either this protocol or its parent release.
    • getMajorReleaseName

      String getMajorReleaseName()
      Gets the name of the major release of this protocol. May not, although usually will, be the same as the name of the IProtocol representing the major release. For example, the name of an IProtocol representing a major release may be "1.7.2", but the name of the major release is "1.7".
    • getMinorReleases

      List<IProtocol> getMinorReleases()
      If this protocol is a major release, returns a list of all minor releases (children) of this protocol, including this protocol. Throws an exception if this protocol is not a major release.
    • isMulticonnectBeta

      boolean isMulticonnectBeta()
      Returns whether this protocol is only in beta support by multiconnect, and may have stability issues when connected.