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.

Currently there is only one type of entries; ReceivedMessage, which is an entry for full chat or game messages.

Mappings:
Namespace Name
official eyc
intermediary net/minecraft/class_7555
named net/minecraft/client/report/log/ChatLog
  • Field Details

    • entries

      private final ChatLogEntry[] entries
      Mappings:
      Namespace Name Mixin selector
      official a Leyc;a:[Leye;
      intermediary field_40496 Lnet/minecraft/class_7555;field_40496:[Lnet/minecraft/class_7629;
      named entries Lnet/minecraft/client/report/log/ChatLog;entries:[Lnet/minecraft/client/report/log/ChatLogEntry;
    • currentIndex

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

    • ChatLog

      public ChatLog(int size)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leyc;<init>(I)V
      intermediary <init> Lnet/minecraft/class_7555;<init>(I)V
      named <init> Lnet/minecraft/client/report/log/ChatLog;<init>(I)V
    • ChatLog

      private ChatLog(int int2, List<ChatLogEntry> list)
  • Method Details

    • method_46533

      public static com.mojang.serialization.Codec<ChatLog> method_46533(int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Leyc;a(I)Lcom/mojang/serialization/Codec;
      intermediary method_46533 Lnet/minecraft/class_7555;method_46533(I)Lcom/mojang/serialization/Codec;
      named method_46533 Lnet/minecraft/client/report/log/ChatLog;method_46533(I)Lcom/mojang/serialization/Codec;
    • method_46536

      private List<ChatLogEntry> method_46536()
      Mappings:
      Namespace Name Mixin selector
      official c Leyc;c()Ljava/util/List;
      intermediary method_46536 Lnet/minecraft/class_7555;method_46536()Ljava/util/List;
      named method_46536 Lnet/minecraft/client/report/log/ChatLog;method_46536()Ljava/util/List;
    • add

      public void add(ChatLogEntry entry)
      Adds entry to the log.
      Mappings:
      Namespace Name Mixin selector
      official a Leyc;a(Leye;)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 b Leyc;b(I)Leye;
      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;
    • wrapIndex

      private int wrapIndex(int index)
      Mappings:
      Namespace Name Mixin selector
      official c Leyc;c(I)I
      intermediary method_45753 Lnet/minecraft/class_7555;method_45753(I)I
      named wrapIndex Lnet/minecraft/client/report/log/ChatLog;wrapIndex(I)I
    • getMinIndex

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

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

      private int method_46537()
      Mappings:
      Namespace Name Mixin selector
      official d Leyc;d()I
      intermediary method_46537 Lnet/minecraft/class_7555;method_46537()I
      named method_46537 Lnet/minecraft/client/report/log/ChatLog;method_46537()I