Class MinecraftProtocolVersion

java.lang.Object
com.comphenix.protocol.utility.MinecraftProtocolVersion

public final class MinecraftProtocolVersion extends Object
A lookup of the associated protocol version of a given Minecraft server.
  • 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

      public static int getVersion(MinecraftVersion version)
      Retrieve the version of the Minecraft protocol for this version of Minecraft.
      Parameters:
      version - - the version.
      Returns:
      The version number.