Package net.minecraft.client.report
Interface ChatLog
- All Known Implementing Classes:
ChatLogImpl
A chat log holds received chat and game messages with sequential indices, where
newer messages receive bigger indices. An implementation using fixed-size array
is available at
ChatLogImpl
.- Mappings:
Namespace Name official euk
intermediary net/minecraft/class_7555
named net/minecraft/client/report/ChatLog
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A set of streams of logged messages. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ReceivedMessage message) Addsmessage
to the log.int
clampWithOffset
(int index, int offset) Returns the index offset byoffset
and clamped between the minimum and the maximum indices.default boolean
contains
(int index) Returns whether the log contains a message with indexindex
.private ChatLog.Streams
Returns the empty stream.get
(int index) Returns the message with indexindex
, ornull
if there is no such message in the log.default ReceivedMessage.IndexedMessage
getIndexed
(int index) Returns the indexed message with indexindex
, ornull
if there is no such message in the log.int
Returns the maximum index currently used within the log.int
Returns the minimum index currently used within the log.default int
getNextIndex
(int index) Returns the index offset by1
if there is a message with that index, or -1 if there is no message with the offset index.int
getOffsetIndex
(int index, int offset) Returns the index offset byoffset
if there is a message with that index, or -1 if there is no message with the offset index.default int
getPreviousIndex
(int index) Returns the index offset by-1
if there is a message with that index, or -1 if there is no message with the offset index.default ChatLog.Streams
stream
(int startIndex, IntUnaryOperator nextIndexGetter) Returns the streams starting fromstartIndex
.default ChatLog.Streams
Returns the streams starting from the biggest index in the log with entires ordered antichronologically (in descending order).default ChatLog.Streams
streamBackward
(int startIndex) Returns the streams starting fromstartIndex
with entires ordered antichronologically (in descending order).default ChatLog.Streams
Returns the streams starting from the smallest index in the log with entires ordered chronologically (in ascending order).default ChatLog.Streams
streamForward
(int startIndex) Returns the streams starting fromstartIndex
with entires ordered chronologically (in ascending order).default ChatLog.Streams
streamForward
(int startIndex, int endIndex) Returns the streams starting fromstartIndex
with entires ordered chronologically (in ascending order) up to and includingendIndex
.
-
Field Details
-
MISSING_NEXT_INDEX
static final int MISSING_NEXT_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector official a
Leuk;a:I
intermediary field_39629
Lnet/minecraft/class_7555;field_39629:I
named MISSING_NEXT_INDEX
Lnet/minecraft/client/report/ChatLog;MISSING_NEXT_INDEX:I
-
-
Method Details
-
add
Addsmessage
to the log.- Mappings:
Namespace Name Mixin selector official a
Leuk;a(Leul;)V
intermediary method_44535
Lnet/minecraft/class_7555;method_44535(Lnet/minecraft/class_7557;)V
named add
Lnet/minecraft/client/report/ChatLog;add(Lnet/minecraft/client/report/ReceivedMessage;)V
-
get
Returns the message with indexindex
, ornull
if there is no such message in the log.- Returns:
- the message with index
index
, ornull
if there is no such message in the log - Mappings:
Namespace Name Mixin selector official a
Leuk;a(I)Leul;
intermediary method_44532
Lnet/minecraft/class_7555;method_44532(I)Lnet/minecraft/class_7557;
named get
Lnet/minecraft/client/report/ChatLog;get(I)Lnet/minecraft/client/report/ReceivedMessage;
-
getIndexed
Returns the indexed message with indexindex
, ornull
if there is no such message in the log.- Returns:
- the indexed message with index
index
, ornull
if there is no such message in the log - Mappings:
Namespace Name Mixin selector official b
Leuk;b(I)Leul$c;
intermediary method_44537
Lnet/minecraft/class_7555;method_44537(I)Lnet/minecraft/class_7557$class_7560;
named getIndexed
Lnet/minecraft/client/report/ChatLog;getIndexed(I)Lnet/minecraft/client/report/ReceivedMessage$IndexedMessage;
-
contains
default boolean contains(int index) Returns whether the log contains a message with indexindex
.- Returns:
- whether the log contains a message with index
index
- Mappings:
Namespace Name Mixin selector official c
Leuk;c(I)Z
intermediary method_44540
Lnet/minecraft/class_7555;method_44540(I)Z
named contains
Lnet/minecraft/client/report/ChatLog;contains(I)Z
-
getOffsetIndex
int getOffsetIndex(int index, int offset) Returns the index offset byoffset
if there is a message with that index, or -1 if there is no message with the offset index.- Returns:
- the index offset by
offset
if there is a message with that index, or -1 if there is no message with the offset index - Mappings:
Namespace Name Mixin selector official a
Leuk;a(II)I
intermediary method_44533
Lnet/minecraft/class_7555;method_44533(II)I
named getOffsetIndex
Lnet/minecraft/client/report/ChatLog;getOffsetIndex(II)I
-
clampWithOffset
int clampWithOffset(int index, int offset) Returns the index offset byoffset
and clamped between the minimum and the maximum indices.- Returns:
- the index offset by
offset
and clamped between the minimum and the maximum indices - See Also:
- Mappings:
Namespace Name Mixin selector official b
Leuk;b(II)I
intermediary method_44538
Lnet/minecraft/class_7555;method_44538(II)I
named clampWithOffset
Lnet/minecraft/client/report/ChatLog;clampWithOffset(II)I
-
getPreviousIndex
default int getPreviousIndex(int index) Returns the index offset by-1
if there is a message with that index, or -1 if there is no message with the offset index.- Returns:
- the index offset by
-1
if there is a message with that index, or -1 if there is no message with the offset index - See Also:
- Mappings:
Namespace Name Mixin selector official d
Leuk;d(I)I
intermediary method_44543
Lnet/minecraft/class_7555;method_44543(I)I
named getPreviousIndex
Lnet/minecraft/client/report/ChatLog;getPreviousIndex(I)I
-
getNextIndex
default int getNextIndex(int index) Returns the index offset by1
if there is a message with that index, or -1 if there is no message with the offset index.- Returns:
- the index offset by
1
if there is a message with that index, or -1 if there is no message with the offset index - See Also:
- Mappings:
Namespace Name Mixin selector official e
Leuk;e(I)I
intermediary method_44545
Lnet/minecraft/class_7555;method_44545(I)I
named getNextIndex
Lnet/minecraft/client/report/ChatLog;getNextIndex(I)I
-
getMaxIndex
int getMaxIndex()Returns the maximum index currently used within the log.This value changes every time a new message gets added. The message associated with this index is the newest one in the log.
- Returns:
- the maximum index currently used within the log
- Mappings:
Namespace Name Mixin selector official a
Leuk;a()I
intermediary method_44531
Lnet/minecraft/class_7555;method_44531()I
named getMaxIndex
Lnet/minecraft/client/report/ChatLog;getMaxIndex()I
-
getMinIndex
int getMinIndex()Returns the minimum index currently used within the log.This value can change every time a new message gets added. The message associated with this index is the oldest one in the log.
- Returns:
- the minimum index currently used within the log
- Mappings:
Namespace Name Mixin selector official b
Leuk;b()I
intermediary method_44536
Lnet/minecraft/class_7555;method_44536()I
named getMinIndex
Lnet/minecraft/client/report/ChatLog;getMinIndex()I
-
streamForward
Returns the streams starting from the smallest index in the log with entires ordered chronologically (in ascending order).- Returns:
- the streams starting from the smallest index in the log with entires ordered chronologically (in ascending order)
- Mappings:
Namespace Name Mixin selector official c
Leuk;c()Leuk$a;
intermediary method_44539
Lnet/minecraft/class_7555;method_44539()Lnet/minecraft/class_7555$class_7556;
named streamForward
Lnet/minecraft/client/report/ChatLog;streamForward()Lnet/minecraft/client/report/ChatLog$Streams;
-
streamBackward
Returns the streams starting from the biggest index in the log with entires ordered antichronologically (in descending order).- Returns:
- the streams starting from the biggest index in the log with entires ordered antichronologically (in descending order)
- Mappings:
Namespace Name Mixin selector official d
Leuk;d()Leuk$a;
intermediary method_44702
Lnet/minecraft/class_7555;method_44702()Lnet/minecraft/class_7555$class_7556;
named streamBackward
Lnet/minecraft/client/report/ChatLog;streamBackward()Lnet/minecraft/client/report/ChatLog$Streams;
-
streamForward
Returns the streams starting fromstartIndex
with entires ordered chronologically (in ascending order).- Returns:
- the streams starting from
startIndex
with entires ordered chronologically (in ascending order) - Implementation Note:
- If
startIndex
is not in the log, this returnsemptyStreams()
. - Mappings:
Namespace Name Mixin selector official f
Leuk;f(I)Leuk$a;
intermediary method_44546
Lnet/minecraft/class_7555;method_44546(I)Lnet/minecraft/class_7555$class_7556;
named streamForward
Lnet/minecraft/client/report/ChatLog;streamForward(I)Lnet/minecraft/client/report/ChatLog$Streams;
-
streamBackward
Returns the streams starting fromstartIndex
with entires ordered antichronologically (in descending order).- Returns:
- the streams starting from
startIndex
with entires ordered antichronologically (in descending order) - Implementation Note:
- If
startIndex
is not in the log, this returnsemptyStreams()
. - Mappings:
Namespace Name Mixin selector official g
Leuk;g(I)Leuk$a;
intermediary method_44547
Lnet/minecraft/class_7555;method_44547(I)Lnet/minecraft/class_7555$class_7556;
named streamBackward
Lnet/minecraft/client/report/ChatLog;streamBackward(I)Lnet/minecraft/client/report/ChatLog$Streams;
-
streamForward
Returns the streams starting fromstartIndex
with entires ordered chronologically (in ascending order) up to and includingendIndex
.- Returns:
- the streams starting from
startIndex
with entires ordered chronologically (in ascending order) up to and includingendIndex
- Implementation Note:
- If either
startIndex
orendIndex
is not in the log, this returnsemptyStreams()
. - Mappings:
Namespace Name Mixin selector official c
Leuk;c(II)Leuk$a;
intermediary method_44541
Lnet/minecraft/class_7555;method_44541(II)Lnet/minecraft/class_7555$class_7556;
named streamForward
Lnet/minecraft/client/report/ChatLog;streamForward(II)Lnet/minecraft/client/report/ChatLog$Streams;
-
stream
Returns the streams starting fromstartIndex
.- Parameters:
nextIndexGetter
- a function that, when given an index, returns the next index or -1 to indicate the end of the stream- Returns:
- the streams starting from
startIndex
- Implementation Note:
- If
startIndex
is not in the log, this returnsemptyStreams()
. - Mappings:
Namespace Name Mixin selector official a
Leuk;a(ILjava/util/function/IntUnaryOperator;)Leuk$a;
intermediary method_44534
Lnet/minecraft/class_7555;method_44534(ILjava/util/function/IntUnaryOperator;)Lnet/minecraft/class_7555$class_7556;
named stream
Lnet/minecraft/client/report/ChatLog;stream(ILjava/util/function/IntUnaryOperator;)Lnet/minecraft/client/report/ChatLog$Streams;
-
emptyStreams
Returns the empty stream.- Returns:
- the empty stream
- Mappings:
Namespace Name Mixin selector official e
Leuk;e()Leuk$a;
intermediary method_44542
Lnet/minecraft/class_7555;method_44542()Lnet/minecraft/class_7555$class_7556;
named emptyStreams
Lnet/minecraft/client/report/ChatLog;emptyStreams()Lnet/minecraft/client/report/ChatLog$Streams;
-