JavaScript is disabled on your browser.
All Superinterfaces:
Provider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Method Summary
All Methods Instance Methods Abstract Methods Default Methods
Optionally allows platforms to specify the client version of a user.
Returns the closest server protocol version to the user's protocol version.
Method Details
getClientProtocol
Optionally allows platforms to specify the client version of a user. This is needed when the platform supports
connecting other version types then
VersionType.RELEASE
to the server.
Parameters:
connection
- connection
Returns:
client protocol version, or null if handshake packet should be used
getServerProtocol
Parameters:
connection
- connection
Returns:
closest server protocol version to the user's protocol version
getClosestServerProtocol
Returns the closest server protocol version to the user's protocol version.
On non-proxy servers, this returns the actual server version.
Parameters:
connection
- connection
Returns:
closest server protocol version to the user's protocol version
Throws:
Exception