Interface SignedString

All Known Implementing Classes:
SignedString.Unsigned

  • Method Details

    • string

      String string()
      Returns the raw string message.
      Returns:
      raw string message
    • signedMessage

      @Nullable SignedMessage signedMessage()
      Returns the signed message if the argument was actually signed by the client, otherwise null.
      Returns:
      signed message
    • sendMessage

      void sendMessage(Audience audience, ChatType.Bound chatType, Component unsigned)
      Sends the signed message with the provided unsigned content.

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

      Parameters:
      audience - audience
      chatType - chat type, for if the message is signed
      unsigned - unsigned content
    • sendMessage

      default void sendMessage(Audience audience, ChatType chatType, Component unsigned)
      Sends the signed message with the provided unsigned content.

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

      Parameters:
      audience - audience
      chatType - chat type, for if the message is signed
      unsigned - unsigned content
    • unsigned

      static SignedString unsigned(String message)
      Creates a new unsigned string wrapping message.
      Parameters:
      message - raw string message
      Returns:
      unsigned string