Package com.comphenix.protocol.utility
Class MinecraftProtocolVersion
java.lang.Object
com.comphenix.protocol.utility.MinecraftProtocolVersion
A lookup of the associated protocol version of a given Minecraft server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intRetrieve the version of the Minecraft protocol for the current version of Minecraft.static intgetVersion(MinecraftVersion version) Retrieve the version of the Minecraft protocol for this version of Minecraft.
-
Constructor Details
-
MinecraftProtocolVersion
public MinecraftProtocolVersion()
-
-
Method Details
-
getCurrentVersion
public static int getCurrentVersion()Retrieve the version of the Minecraft protocol for the current version of Minecraft.- Returns:
- The version number.
-
getVersion
Retrieve the version of the Minecraft protocol for this version of Minecraft.- Parameters:
version- - the version.- Returns:
- The version number.
-