public class ClientChatEvent extends Event
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.Cancelable
. HasResult
MinecraftForge.EVENT_BUS
.Event.HasResult, Event.Result
Constructor and Description |
---|
ClientChatEvent(java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage() |
java.lang.String |
getOriginalMessage() |
void |
setMessage(java.lang.String message) |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup