Interface SignedString
- All Known Implementing Classes:
SignedString.Unsigned
@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
public interface SignedString
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidsendMessage(Audience audience, ChatType.Bound chatType, Component unsigned) Sends the signed message with the provided unsigned content.default voidsendMessage(Audience audience, ChatType chatType, Component unsigned) Sends the signed message with the provided unsigned content.Returns the signed message if the argument was actually signed by the client, otherwisenull.string()Returns the raw string message.static SignedStringCreates a new unsigned string wrappingmessage.
-
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, otherwisenull.- Returns:
- signed message
-
sendMessage
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- audiencechatType- chat type, for if the message is signedunsigned- unsigned content
-
sendMessage
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- audiencechatType- chat type, for if the message is signedunsigned- unsigned content
-
unsigned
Creates a new unsigned string wrappingmessage.- Parameters:
message- raw string message- Returns:
- unsigned string
-