Package com.velocitypowered.api.proxy
Interface LoginPhaseConnection
- All Superinterfaces:
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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceConsumes the message. -
Method Summary
Modifier and TypeMethodDescriptionvoidsendLoginPluginMessage(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
getProtocolState, getProtocolVersion, getRemoteAddress, getVirtualHost, isActiveMethods inherited from interface com.velocitypowered.api.proxy.crypto.KeyIdentifiable
getIdentifiedKey
-
Method Details
-
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
-