Class SignedString.Unsigned

java.lang.Object
org.incendo.cloud.minecraft.signed.SignedString.Unsigned
All Implemented Interfaces:
SignedString
Enclosing interface:
SignedString

public static final class SignedString.Unsigned extends Object implements SignedString
  • Method Details

    • signedMessage

      public @Nullable SignedMessage signedMessage()
      Description copied from interface: SignedString
      Returns the signed message if the argument was actually signed by the client, otherwise null.
      Specified by:
      signedMessage in interface SignedString
      Returns:
      signed message
    • sendMessage

      public void sendMessage(Audience audience, ChatType.Bound chatType, Component unsigned)
      Description copied from interface: SignedString
      Sends the signed message with the provided unsigned content.

      If the message is not signed, it will be sent as a system message.

      Specified by:
      sendMessage in interface SignedString
      Parameters:
      audience - audience
      chatType - chat type, for if the message is signed
      unsigned - unsigned content
    • string

      public String string()
      Description copied from interface: SignedString
      Returns the raw string message.
      Specified by:
      string in interface SignedString
      Returns:
      raw string message