Class ServerChatEvent.Preview

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.ServerChatEvent
net.minecraftforge.event.ServerChatEvent.Preview
Enclosing class:
ServerChatEvent

public static class ServerChatEvent.Preview extends ServerChatEvent
This event is fired whenever a ServerboundChatPreviewPacket is received from a client typing a message.

This event is cancellable, and does not have a result. If the event is cancelled, the chat preview sent back to the client will match the original message.

This event is fired on the main Forge event bus, only on the logical server.