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.
  • 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 use
      contents - the message to send
      consumer - the consumer that will respond to the message