1
0
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:
chris
2024-10-23 03:49:04 +08:00
committed by GitHub
parent 264a914d41
commit d94c6ffcb6
3 changed files with 11 additions and 1 deletions

View File

@@ -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.