Package net.minecraftforge.client.event
Class ClientChatEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ClientChatEvent
public class ClientChatEvent
extends net.minecraftforge.eventbus.api.Event
ClientChatEvent is fired whenever the client is about to send a chat message or command to the server.
This event is fired via
This event is
If this event is canceled, the chat message or command is never sent to the server.
This event does not have a result.
This event is fired on the
This event is fired via
ForgeEventFactory.onClientSendMessage(String)
,
which is executed by GuiScreen#sendChatMessage(String, boolean)
message
contains the message that will be sent to the server. This can be changed by mods.originalMessage
contains the original message that was going to be sent to the server. This cannot be changed by mods.This event is
Cancelable
. If this event is canceled, the chat message or command is never sent to the server.
This event does not have a result.
Event.HasResult
This event is fired on the
MinecraftForge.EVENT_BUS
.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
message
-
originalMessage
-
-
Constructor Details
-
ClientChatEvent
-
-
Method Details
-
getMessage
-
setMessage
-
getOriginalMessage
-