Interface IProtocol
public interface IProtocol
Contains information about a supported protocol version
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the datafix version of this protocolReturns 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.getName()Returns the name of the Minecraft version that this protocol represents.intgetValue()Returns the protocol version ID, to be compared with values inProtocols.booleanReturns whether this version is considered a major release, i.e.booleanReturns 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 inProtocols. -
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 theIProtocolrepresenting the major release. For example, the name of anIProtocolrepresenting a major release may be "1.7.2", but the name of the major release is "1.7". -
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.
-