Class ChatLog

java.lang.Object
net.minecraft.client.report.log.ChatLog

@Environment(CLIENT) public class ChatLog extends Object
A chat log holds received message entries with sequential indices, where newer entries receive bigger indices. An implementation using fixed-size array is available at ChatLogImpl.

There are two types of entries.

invalid @link
HeaderEntry
is an entry containing only the message's header, and is used for censored messages. ReceivedMessage is an entry for full chat or game messages.
Mappings:
Namespace Name
official exv
intermediary net/minecraft/class_7555
named net/minecraft/client/report/log/ChatLog
  • Field Details

    • field_40496

      private final ChatLogEntry[] field_40496
      Mappings:
      Namespace Name Mixin selector
      official a Lexv;a:[Lexx;
      intermediary field_40496 Lnet/minecraft/class_7555;field_40496:[Lnet/minecraft/class_7629;
      named field_40496 Lnet/minecraft/client/report/log/ChatLog;field_40496:[Lnet/minecraft/client/report/log/ChatLogEntry;
    • field_40497

      private int field_40497
      Mappings:
      Namespace Name Mixin selector
      official b Lexv;b:I
      intermediary field_40497 Lnet/minecraft/class_7555;field_40497:I
      named field_40497 Lnet/minecraft/client/report/log/ChatLog;field_40497:I
  • Constructor Details

    • ChatLog

      public ChatLog(int int2)
  • Method Details

    • add

      public void add(ChatLogEntry entry)
      Adds entry to the log.
      Mappings:
      Namespace Name Mixin selector
      official a Lexv;a(Lexx;)V
      intermediary method_44535 Lnet/minecraft/class_7555;method_44535(Lnet/minecraft/class_7629;)V
      named add Lnet/minecraft/client/report/log/ChatLog;add(Lnet/minecraft/client/report/log/ChatLogEntry;)V
    • get

      @Nullable public @Nullable ChatLogEntry get(int index)
      Returns the entry with index index, or null if there is no such entry in the log.
      Returns:
      the entry with index index, or null if there is no such entry in the log
      Mappings:
      Namespace Name Mixin selector
      official a Lexv;a(I)Lexx;
      intermediary method_44532 Lnet/minecraft/class_7555;method_44532(I)Lnet/minecraft/class_7629;
      named get Lnet/minecraft/client/report/log/ChatLog;get(I)Lnet/minecraft/client/report/log/ChatLogEntry;
    • method_45753

      private int method_45753(int int2)
      Mappings:
      Namespace Name Mixin selector
      official b Lexv;b(I)I
      intermediary method_45753 Lnet/minecraft/class_7555;method_45753(I)I
      named method_45753 Lnet/minecraft/client/report/log/ChatLog;method_45753(I)I
    • method_45751

      public int method_45751()
      Mappings:
      Namespace Name Mixin selector
      official a Lexv;a()I
      intermediary method_45751 Lnet/minecraft/class_7555;method_45751()I
      named method_45751 Lnet/minecraft/client/report/log/ChatLog;method_45751()I
    • method_45752

      public int method_45752()
      Mappings:
      Namespace Name Mixin selector
      official b Lexv;b()I
      intermediary method_45752 Lnet/minecraft/class_7555;method_45752()I
      named method_45752 Lnet/minecraft/client/report/log/ChatLog;method_45752()I