Interface ClientChatListener

All Known Implementing Classes:
ChatHudListener, GameInfoChatListener, NarratorManager

@Environment(CLIENT) public interface ClientChatListener
A listener for received chat messages and game messages.

Listeners are registered at InGameHud.listeners per message type.

See Also:
Mappings:
Namespace Name
official ege
intermediary net/minecraft/class_334
named net/minecraft/client/gui/ClientChatListener
  • Method Details

    • onChatMessage

      void onChatMessage(MessageType type, Text message, @Nullable @Nullable MessageSender sender)
      Called when a message is received.
      Parameters:
      sender - the chat message's sender, or null for game messages
      Mappings:
      Namespace Name Mixin selector
      official a Lege;a(Lrj;Lrm;Lri;)V
      intermediary method_1794 Lnet/minecraft/class_334;method_1794(Lnet/minecraft/class_2556;Lnet/minecraft/class_2561;Lnet/minecraft/class_7436;)V
      named onChatMessage Lnet/minecraft/client/gui/ClientChatListener;onChatMessage(Lnet/minecraft/network/MessageType;Lnet/minecraft/text/Text;Lnet/minecraft/network/MessageSender;)V