Class ChatLogImpl

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

public class ChatLogImpl extends Object
An implementation of ChatLog using a fixed-size array and 0 as the starting index. When adding a log, the index is incremented, and the entry at the index is overwritten. If the index goes above the array size, the array index wraps around but the entry index is still incremented.

For example, if the size is 10, after adding the 10th item, the next index is 10 because the log is 0-indexed. However, the next message will be stored at messages[0]. Use

invalid @link
#wrapIndex
to calculate the wrapped index.
Mappings:
Namespace Name
official su
intermediary net/minecraft/class_7561
named net/minecraft/client/report/log/ChatLogImpl
  • Field Details

    • field_40686

      private static final int field_40686
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lsu;a:I
      intermediary field_40686 Lnet/minecraft/class_7561;field_40686:I
      named field_40686 Lnet/minecraft/client/report/log/ChatLogImpl;field_40686:I
    • field_40687

      private final MessageSignatureData[] field_40687
      Mappings:
      Namespace Name Mixin selector
      official b Lsu;b:[Lst;
      intermediary field_40687 Lnet/minecraft/class_7561;field_40687:[Lnet/minecraft/class_7469;
      named field_40687 Lnet/minecraft/client/report/log/ChatLogImpl;field_40687:[Lnet/minecraft/network/message/MessageSignatureData;
  • Constructor Details

    • ChatLogImpl

      public ChatLogImpl(int maxEntries)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lsu;<init>(I)V
      intermediary <init> Lnet/minecraft/class_7561;<init>(I)V
      named <init> Lnet/minecraft/client/report/log/ChatLogImpl;<init>(I)V
  • Method Details

    • method_46281

      public static ChatLogImpl method_46281()
      Mappings:
      Namespace Name Mixin selector
      official a Lsu;a()Lsu;
      intermediary method_46281 Lnet/minecraft/class_7561;method_46281()Lnet/minecraft/class_7561;
      named method_46281 Lnet/minecraft/client/report/log/ChatLogImpl;method_46281()Lnet/minecraft/client/report/log/ChatLogImpl;
    • method_46287

      public MessageSignatureData.class_7820 method_46287()
      Mappings:
      Namespace Name Mixin selector
      official b Lsu;b()Lst$b;
      intermediary method_46287 Lnet/minecraft/class_7561;method_46287()Lnet/minecraft/class_7469$class_7820;
      named method_46287 Lnet/minecraft/client/report/log/ChatLogImpl;method_46287()Lnet/minecraft/network/message/MessageSignatureData$class_7820;
    • method_46288

      public MessageSignatureData.class_7821 method_46288()
      Mappings:
      Namespace Name Mixin selector
      official c Lsu;c()Lst$c;
      intermediary method_46288 Lnet/minecraft/class_7561;method_46288()Lnet/minecraft/class_7469$class_7821;
      named method_46288 Lnet/minecraft/client/report/log/ChatLogImpl;method_46288()Lnet/minecraft/network/message/MessageSignatureData$class_7821;
    • method_46286

      public void method_46286(SignedMessage signedMessage)
      Mappings:
      Namespace Name Mixin selector
      official a Lsu;a(Lsx;)V
      intermediary method_46286 Lnet/minecraft/class_7561;method_46286(Lnet/minecraft/class_7471;)V
      named method_46286 Lnet/minecraft/client/report/log/ChatLogImpl;method_46286(Lnet/minecraft/network/message/SignedMessage;)V
    • method_46284

      @VisibleForTesting void method_46284(List<MessageSignatureData> list)
      Mappings:
      Namespace Name Mixin selector
      official a Lsu;a(Ljava/util/List;)V
      intermediary method_46284 Lnet/minecraft/class_7561;method_46284(Ljava/util/List;)V
      named method_46284 Lnet/minecraft/client/report/log/ChatLogImpl;method_46284(Ljava/util/List;)V
    • method_46283

      private void method_46283(ArrayDeque<MessageSignatureData> arrayDeque)
      Mappings:
      Namespace Name Mixin selector
      official a Lsu;a(Ljava/util/ArrayDeque;)V
      intermediary method_46283 Lnet/minecraft/class_7561;method_46283(Ljava/util/ArrayDeque;)V
      named method_46283 Lnet/minecraft/client/report/log/ChatLogImpl;method_46283(Ljava/util/ArrayDeque;)V