Class ChatFormatter.ChatContext
java.lang.Object
com.plotsquared.core.configuration.caption.ChatFormatter.ChatContext
- Enclosing interface:
- ChatFormatter
-
Constructor Summary
ConstructorDescriptionChatContext(@Nullable PlotPlayer<?> recipient, @NonNull String message, boolean rawOutput)
Create a new chat context -
Method Summary
Modifier and TypeMethodDescription@NonNull String
Get the message stored in the context@Nullable PlotPlayer<?>
Get the message recipientboolean
Whether or not the output should escape any formatting keysvoid
setMessage(@NonNull String message)
Set the new message
-
Constructor Details
-
ChatContext
Create a new chat context- Parameters:
recipient
- Message recipientmessage
- MessagerawOutput
- Whether or not formatting keys should be included in the final message
-
-
Method Details
-
getRecipient
Get the message recipient- Returns:
- Recipient
-
getMessage
Get the message stored in the context- Returns:
- Stored message
-
setMessage
Set the new message- Parameters:
message
- Message
-
isRawOutput
public boolean isRawOutput()Whether or not the output should escape any formatting keys- Returns:
- True if raw output is to be used
-