Package net.minecraft.client.report.log
Class ChatLog
java.lang.Object
net.minecraft.client.report.log.ChatLog
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 exvintermediary net/minecraft/class_7555named net/minecraft/client/report/log/ChatLog
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ChatLogEntry entry) Addsentryto the log.get(int index) Returns the entry with indexindex, ornullif there is no such entry in the log.intintprivate intwrapIndex(int index)
-
Field Details
-
entries
- Mappings:
Namespace Name Mixin selector official aLexv;a:[Lexx;intermediary field_40496Lnet/minecraft/class_7555;field_40496:[Lnet/minecraft/class_7629;named entriesLnet/minecraft/client/report/log/ChatLog;entries:[Lnet/minecraft/client/report/log/ChatLogEntry;
-
currentIndex
private int currentIndex- Mappings:
Namespace Name Mixin selector official bLexv;b:Iintermediary field_40497Lnet/minecraft/class_7555;field_40497:Inamed currentIndexLnet/minecraft/client/report/log/ChatLog;currentIndex:I
-
-
Constructor Details
-
ChatLog
public ChatLog(int size) - Mappings:
Namespace Name Mixin selector official <init>Lexv;<init>(I)Vintermediary <init>Lnet/minecraft/class_7555;<init>(I)Vnamed <init>Lnet/minecraft/client/report/log/ChatLog;<init>(I)V
-
-
Method Details
-
add
Addsentryto the log.- Mappings:
Namespace Name Mixin selector official aLexv;a(Lexx;)Vintermediary method_44535Lnet/minecraft/class_7555;method_44535(Lnet/minecraft/class_7629;)Vnamed addLnet/minecraft/client/report/log/ChatLog;add(Lnet/minecraft/client/report/log/ChatLogEntry;)V
-
get
Returns the entry with indexindex, ornullif there is no such entry in the log.- Returns:
- the entry with index
index, ornullif there is no such entry in the log - Mappings:
Namespace Name Mixin selector official aLexv;a(I)Lexx;intermediary method_44532Lnet/minecraft/class_7555;method_44532(I)Lnet/minecraft/class_7629;named getLnet/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 bLexv;b(I)Iintermediary method_45753Lnet/minecraft/class_7555;method_45753(I)Inamed wrapIndexLnet/minecraft/client/report/log/ChatLog;wrapIndex(I)I
-
getMinIndex
public int getMinIndex()- Mappings:
Namespace Name Mixin selector official aLexv;a()Iintermediary method_45751Lnet/minecraft/class_7555;method_45751()Inamed getMinIndexLnet/minecraft/client/report/log/ChatLog;getMinIndex()I
-
getMaxIndex
public int getMaxIndex()- Mappings:
Namespace Name Mixin selector official bLexv;b()Iintermediary method_45752Lnet/minecraft/class_7555;method_45752()Inamed getMaxIndexLnet/minecraft/client/report/log/ChatLog;getMaxIndex()I
-