Package net.minecraftforge.event
Class ServerChatEvent.Submitted
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.ServerChatEvent
net.minecraftforge.event.ServerChatEvent.Submitted
- Enclosing class:
- ServerChatEvent
This event is fired whenever a
ServerboundChatPacket
is received from a client
who has submitted their chat message.
This event is cancellable, and does not have a result. If the event is cancelled, the message will not be sent to clients.
This event is fired on the main Forge event bus, only on the logical server.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.ServerChatEvent
ServerChatEvent.Preview, ServerChatEvent.Submitted
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ConstructorDescriptionSubmitted
(ServerPlayer player, String rawText, Component message, boolean canChangeMessage) -
Method Summary
Methods inherited from class net.minecraftforge.event.ServerChatEvent
canChangeMessage, getMessage, getPlayer, getRawText, getUsername, setMessage
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
Submitted
@Internal public Submitted(ServerPlayer player, String rawText, Component message, boolean canChangeMessage)
-