Class GameInfoChatListener

java.lang.Object
net.minecraft.client.gui.GameInfoChatListener
All Implemented Interfaces:
ClientChatListener

@Environment(CLIENT) public class GameInfoChatListener extends Object implements ClientChatListener
Mappings:
Namespace Name
official egj
intermediary net/minecraft/class_336
named net/minecraft/client/gui/GameInfoChatListener
  • Field Details

    • client

      private final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      official a Legj;a:Leev;
      intermediary field_2057 Lnet/minecraft/class_336;field_2057:Lnet/minecraft/class_310;
      named client Lnet/minecraft/client/gui/GameInfoChatListener;client:Lnet/minecraft/client/MinecraftClient;
  • Constructor Details

    • GameInfoChatListener

      public GameInfoChatListener(MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      official <init> Legj;<init>(Leev;)V
      intermediary <init> Lnet/minecraft/class_336;<init>(Lnet/minecraft/class_310;)V
      named <init> Lnet/minecraft/client/gui/GameInfoChatListener;<init>(Lnet/minecraft/client/MinecraftClient;)V
  • Method Details

    • onChatMessage

      public void onChatMessage(MessageType type, Text message, @Nullable @Nullable MessageSender sender)
      Called when a message is received.
      Specified by:
      onChatMessage in interface ClientChatListener
      Parameters:
      sender - the chat message's sender, or null for game messages
      Mappings:
      Namespace Name Mixin selector
      official a Legf;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/message/MessageType;Lnet/minecraft/text/Text;Lnet/minecraft/network/message/MessageSender;)V