public interface CancelMessage
extends org.spongepowered.api.event.Cancellable
Modifier and Type | Method and Description |
---|---|
Optional<org.spongepowered.api.text.Text> |
getCancelMessage()
The message to send to the player if the event is cancelled, if any.
|
void |
setCancelMessage(org.spongepowered.api.text.Text message)
The message to display to the user if the event is cancelled, or
null to clear. |
Optional<org.spongepowered.api.text.Text> getCancelMessage()
void setCancelMessage(@Nullable org.spongepowered.api.text.Text message)
null
to clear.message
- The message.