Class ChatFormatter.ChatContext
java.lang.Object
com.plotsquared.core.configuration.caption.ChatFormatter.ChatContext
- Enclosing interface:
- ChatFormatter
-
Constructor Summary
ConstructorsConstructorDescriptionChatContext(@Nullable PlotPlayer<?> recipient, @NonNull String message, boolean rawOutput) Create a new chat context -
Method Summary
Modifier and TypeMethodDescriptionGet the message stored in the contextGet the message recipientbooleanWhether or not the output should escape any formatting keysvoidsetMessage(@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:
trueif raw output is to be used
-