Interface MinecraftVersion


public interface MinecraftVersion
Represents a Minecraft version.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the protocol version of this Minecraft version.
    @NonNull String
    Gets the Minecraft version as a String.
  • Method Details

    • versionString

      @NonNull String versionString()
      Gets the Minecraft version as a String. Example: "1.20.2", or "1.20.40/1.20.41"
      Returns:
      the version string
    • protocolVersion

      int protocolVersion()
      Gets the protocol version of this Minecraft version.
      Returns:
      the protocol version