Interface ClientPingServerEvent.Response.Version
- All Superinterfaces:
Comparable<MinecraftVersion>
,MinecraftVersion
- Enclosing interface:
ClientPingServerEvent.Response
Represents the information about the version of the server, sent
after the
ClientPingServerEvent
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets the name of the version of the server.void
setProtocolVersion
(int protocolVersion) Sets the server protocol version reported to the client.Methods inherited from interface org.spongepowered.api.MinecraftVersion
compareTo, dataVersion, isLegacy, name, protocolVersion
-
Method Details
-
setName
Sets the name of the version of the server. This is usually displayed on the client if the server is using an incompatible protocol version.- Parameters:
name
- The new display name of the server version
-
setProtocolVersion
void setProtocolVersion(int protocolVersion) Sets the server protocol version reported to the client. Modifying this will change if the client sees the server as incompatible or not, forcing it to display theMinecraftVersion.name()
.- Parameters:
protocolVersion
- The new server protocol version- See Also:
-