Interface PlayerChatEvent.Decorate

All Superinterfaces:
Event, MessageEvent, PlayerChatEvent
Enclosing interface:
PlayerChatEvent

public static interface PlayerChatEvent.Decorate extends PlayerChatEvent
Fired when previewing a message by a player or simulating chat
  • 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 interface MessageEvent
      Returns:
      The original chat message