Add InboundConnection#getHandshakeIntent (#1493)

* Add InboundConnection#getHandshakeIntent
This commit is contained in:
Gero
2025-01-15 02:44:20 +01:00
committed by GitHub
parent 00b68859ff
commit c0fdf20224
6 changed files with 35 additions and 2 deletions

View File

@@ -7,6 +7,7 @@
package com.velocitypowered.api.proxy;
import com.velocitypowered.api.network.HandshakeIntent;
import com.velocitypowered.api.network.ProtocolState;
import com.velocitypowered.api.network.ProtocolVersion;
import java.net.InetSocketAddress;
@@ -60,4 +61,11 @@ public interface InboundConnection {
* @return the protocol state of the connection
*/
ProtocolState getProtocolState();
/**
* Returns the initial intent for the connection.
*
* @return the intent of the connection
*/
HandshakeIntent getHandshakeIntent();
}