Package com.velocitypowered.api.proxy
Interface LoginPhaseConnection
-
- All Superinterfaces:
InboundConnection,KeyIdentifiable
public interface LoginPhaseConnection extends InboundConnection, KeyIdentifiable
Represents a connextion that is in the login phase. This is most useful in conjunction for login plugin messages.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceLoginPhaseConnection.MessageConsumerConsumes the message.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsendLoginPluginMessage(ChannelIdentifier identifier, byte[] contents, LoginPhaseConnection.MessageConsumer consumer)Sends a login plugin message to the client, and provides a consumer to react to the response to the client.-
Methods inherited from interface com.velocitypowered.api.proxy.InboundConnection
getProtocolVersion, getRemoteAddress, getVirtualHost, isActive
-
Methods inherited from interface com.velocitypowered.api.proxy.crypto.KeyIdentifiable
getIdentifiedKey
-
-
-
-
Method Detail
-
sendLoginPluginMessage
void sendLoginPluginMessage(ChannelIdentifier identifier, byte[] contents, LoginPhaseConnection.MessageConsumer consumer)
Sends a login plugin message to the client, and provides a consumer to react to the response to the client. The login process will not continue until there are no more login plugin messages that require responses.- Parameters:
identifier- the channel identifier to usecontents- the message to sendconsumer- the consumer that will respond to the message
-
-