Package net.minecraftforge.client.event
Class ClientChatReceivedEvent.System
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ClientChatReceivedEvent
net.minecraftforge.client.event.ClientChatReceivedEvent.System
- Enclosing class:
- ClientChatReceivedEvent
Fired when a system chat message is received on the client.
This event is cancellable, and does not have a result. If the event is cancelled, the message is not displayed in the chat message window or in the overlay.
This event is fired on the main Forge event bus, only on the logical client.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.ClientChatReceivedEvent
ClientChatReceivedEvent.System
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
Modifier and TypeMethodDescriptionboolean
Returns whether the message goes to the overlay.Methods inherited from class net.minecraftforge.client.event.ClientChatReceivedEvent
getBoundChatType, getMessage, getMessageSigner, getPlayerChatMessage, isSystem, setMessage
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
overlay
private final boolean overlay
-
-
Constructor Details
-
System
-
-
Method Details
-
isOverlay
public boolean isOverlay()Returns whether the message goes to the overlay.- Returns:
- whether the message goes to the overlay
-