Package me.hackware.api.event.impl
Class ChatReceiveEvent
java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.ChatReceiveEvent
Fired when a chat message is received (system messages, player chat,
disguised chat). Cancellable — cancelling suppresses the message from
appearing in the chat HUD.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentThe formatted message component.getText()The plain-text content of the message.Methods inherited from class me.hackware.api.event.Event
cancel, isCancelled
-
Constructor Details
-
ChatReceiveEvent
public ChatReceiveEvent(net.minecraft.network.chat.Component message)
-
-
Method Details
-
getMessage
public net.minecraft.network.chat.Component getMessage()The formatted message component. -
getText
The plain-text content of the message.
-