Package org.geysermc.geyser.api.util
Interface MinecraftVersion
@NonExtendable
public interface MinecraftVersion
Represents a Minecraft version.
-
Method Summary
Modifier and TypeMethodDescriptionintGets the protocol version of this Minecraft version.Gets the Minecraft version as a String.
-
Method Details
-
versionString
String versionString()Gets the Minecraft version as a String. Example formats: "1.21", "1.21.1", "1.21.22"- Returns:
- the version string
-
protocolVersion
int protocolVersion()Gets the protocol version of this Minecraft version.- Returns:
- the protocol version
-