mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-19 14:59:27 +00:00
API: Expose a GeyserConnection's protocol version (#5083)
* Add protocolVersion() to GeyserConnection * specify which protocol
This commit is contained in:
@@ -70,6 +70,11 @@ public interface GeyserConnection extends Connection, CommandSource {
|
||||
*/
|
||||
void closeForm();
|
||||
|
||||
/**
|
||||
* Gets the Bedrock protocol version of the player.
|
||||
*/
|
||||
int protocolVersion();
|
||||
|
||||
/**
|
||||
* @param javaId the Java entity ID to look up.
|
||||
* @return a {@link GeyserEntity} if present in this connection's entity tracker.
|
||||
|
||||
Reference in New Issue
Block a user