Interface OutgoingMessage

All Superinterfaces:
Message

public interface OutgoingMessage extends Message
Represents an outgoing Message.

Outgoing messages are ones which have been generated by this instance. (in other words, they are implemented by LuckPerms)

Note that all implementations of this interface are guaranteed to be an instance of one of the interfaces extending Message in the 'api.messenger.message.type' package.

  • Method Summary

    Modifier and Type
    Method
    Description
    Gets an encoded string form of this message.

    Methods inherited from interface net.luckperms.api.messenger.message.Message

    getId
  • Method Details

    • asEncodedString

      @NonNull String asEncodedString()
      Gets an encoded string form of this message.

      The format of this string is likely to change between versions and should not be depended on.

      Implementations which want to use a standard method of serialisation can send outgoing messages using the string returned by this method, and pass on the message on the "other side" using IncomingMessageConsumer.consumeIncomingMessageAsString(String).

      Returns:
      an encoded string form of the message