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
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
message |
private java.lang.String |
originalMessage |
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