Class SignedString.Unsigned
java.lang.Object
org.incendo.cloud.minecraft.signed.SignedString.Unsigned
- All Implemented Interfaces:
SignedString
- Enclosing interface:
SignedString
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.incendo.cloud.minecraft.signed.SignedString
SignedString.Unsigned -
Method Summary
Modifier and TypeMethodDescriptionvoidsendMessage(Audience audience, ChatType.Bound 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.incendo.cloud.minecraft.signed.SignedString
sendMessage
-
Method Details
-
signedMessage
Description copied from interface:SignedStringReturns the signed message if the argument was actually signed by the client, otherwisenull.- Specified by:
signedMessagein interfaceSignedString- Returns:
- signed message
-
sendMessage
Description copied from interface:SignedStringSends the signed message with the provided unsigned content.If the message is not signed, it will be sent as a system message.
- Specified by:
sendMessagein interfaceSignedString- Parameters:
audience- audiencechatType- chat type, for if the message is signedunsigned- unsigned content
-
string
Description copied from interface:SignedStringReturns the raw string message.- Specified by:
stringin interfaceSignedString- Returns:
- raw string message
-