Interface PlayerChatEvent.Decorate
- All Superinterfaces:
Event
,MessageEvent
,PlayerChatEvent
- Enclosing interface:
- PlayerChatEvent
Fired when previewing a message by a player or
simulating chat
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.message.PlayerChatEvent
PlayerChatEvent.Decorate, PlayerChatEvent.Submit
-
Method Summary
Methods inherited from interface org.spongepowered.api.event.message.MessageEvent
message, setMessage
Methods inherited from interface org.spongepowered.api.event.message.PlayerChatEvent
player
-
Method Details
-
originalMessage
Component originalMessage()Gets the original chat message.In Vanilla, this is equivalent to what a player typed into the chat box (no name prefix or other elements).
- Specified by:
originalMessage
in interfaceMessageEvent
- Returns:
- The original chat message
-