Interface OutgoingMessage
- All Superinterfaces:
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 TypeMethodDescriptionGets an encoded string form of this message.
-
Method Details
-
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
-