Interface ConnectionHandshakeEvent
-
- All Superinterfaces:
Event,ResultedEvent<ResultedEvent.ComponentResult>
- All Known Implementing Classes:
ConnectionHandshakeEventImpl
public interface ConnectionHandshakeEvent extends ResultedEvent<ResultedEvent.ComponentResult>
This event is fired when a handshake is established between a client and the proxy.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.velocitypowered.api.event.ResultedEvent
ResultedEvent.ComponentResult, ResultedEvent.GenericResult, ResultedEvent.Result
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InboundConnectionconnection()StringcurrentHostname()@Nullable SocketAddresscurrentRemoteHostAddress()StringoriginalHostname()voidsetCurrentHostname(String hostname)voidsetCurrentRemoteHostAddress(@Nullable SocketAddress address)-
Methods inherited from interface com.velocitypowered.api.event.ResultedEvent
result, setResult
-
-
-
-
Method Detail
-
connection
InboundConnection connection()
-
currentHostname
String currentHostname()
-
originalHostname
String originalHostname()
-
setCurrentHostname
void setCurrentHostname(String hostname)
-
currentRemoteHostAddress
@Nullable SocketAddress currentRemoteHostAddress()
-
setCurrentRemoteHostAddress
void setCurrentRemoteHostAddress(@Nullable SocketAddress address)
-
-