Package org.geysermc.geyser.api.util
Interface MinecraftVersion
public interface MinecraftVersion
Represents a Minecraft version.
-
Method Summary
Modifier and TypeMethodDescriptionintGets the protocol version of this Minecraft version.@NonNull StringGets 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
-