ChatReceivedEvent
This fires each time a message appears in your chat.
Cancellable = true
Parameter
ChatReceivedEvent
Properties
Type
-
CHAT - Normal chat messages.
-
SYSTEM - System messages.
-
ACTION_BAR - Action bar messages (above hotbar).
Tip
In most cases you should only use CHAT, which is what is normally used by default in Forge mods.
Methods
Component
Returns the IChatComponent of the message.
Type
Corresponding to current message type.
Tip
It is recommended to use the type enums shown above instead of a byte.