Class ChatReportBuilder
java.lang.Object
net.minecraft.client.multiplayer.chat.report.ChatReportBuilder
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
(package private) static interface
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private final Instant
private final com.mojang.authlib.minecraft.report.AbuseReportLimits
private ReportReason
private final it.unimi.dsi.fastutil.ints.IntSet
private final UUID
private final UUID
-
Constructor Summary
ModifierConstructorDescriptionChatReportBuilder
(UUID p_239528_, com.mojang.authlib.minecraft.report.AbuseReportLimits p_239529_) private
ChatReportBuilder
(UUID p_239204_, Instant p_239205_, UUID p_239206_, com.mojang.authlib.minecraft.report.AbuseReportLimits p_239207_) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either<ChatReportBuilder.Result,
ChatReportBuilder.CannotBuildReason> build
(ReportingContext p_240129_) private com.mojang.authlib.minecraft.report.ReportEvidence
buildEvidence
(ChatLog p_239183_) private com.mojang.authlib.minecraft.report.ReportChatMessage
buildReportedChatHeader
(LoggedChatMessageLink p_242212_) private com.mojang.authlib.minecraft.report.ReportChatMessage
buildReportedChatMessage
(int p_242213_, LoggedChatMessage.Player p_242239_) private Stream<ChatLog.Entry<LoggedChatMessageLink>>
chainForPlayer
(ChatLog p_242368_, it.unimi.dsi.fastutil.ints.Int2ObjectMap<LoggedChatMessage.Player> p_242153_, UUID p_242301_) private static it.unimi.dsi.fastutil.ints.Int2ObjectMap<LoggedChatMessage.Player>
collectReferencedContext
(ChatLog p_242227_, int p_242178_, com.mojang.authlib.minecraft.report.AbuseReportLimits p_242421_) comments()
copy()
private static String
encodeComponent
(Component p_239803_) boolean
isReported
(int p_243333_) private static it.unimi.dsi.fastutil.ints.IntCollection
messageReferences
(ChatLog p_242933_, int p_242860_, PlayerChatMessage p_242922_) reason()
it.unimi.dsi.fastutil.ints.IntSet
void
setComments
(String p_239080_) void
setReason
(ReportReason p_239098_) void
toggleReported
(int p_239052_) private static Stream<ChatLog.Entry<LoggedChatMessage.Player>>
trailingContext
(ChatLog p_242447_, int p_242340_, int p_242471_) private static void
walkMessageReferenceGraph
(ChatLog p_242430_, int p_242234_, ChatReportBuilder.ReferencedMessageVisitor p_242920_)
-
Field Details
-
reportId
-
createdAt
-
reportedProfileId
-
limits
private final com.mojang.authlib.minecraft.report.AbuseReportLimits limits -
reportedMessages
private final it.unimi.dsi.fastutil.ints.IntSet reportedMessages -
comments
-
reason
-
-
Constructor Details
-
ChatReportBuilder
-
ChatReportBuilder
public ChatReportBuilder(UUID p_239528_, com.mojang.authlib.minecraft.report.AbuseReportLimits p_239529_)
-
-
Method Details
-
setComments
-
setReason
-
toggleReported
public void toggleReported(int p_239052_) -
reportedProfileId
-
reportedMessages
public it.unimi.dsi.fastutil.ints.IntSet reportedMessages() -
comments
-
reason
-
isReported
public boolean isReported(int p_243333_) -
checkBuildable
-
build
public com.mojang.datafixers.util.Either<ChatReportBuilder.Result,ChatReportBuilder.CannotBuildReason> build(ReportingContext p_240129_) -
buildEvidence
-
chainForPlayer
private Stream<ChatLog.Entry<LoggedChatMessageLink>> chainForPlayer(ChatLog p_242368_, it.unimi.dsi.fastutil.ints.Int2ObjectMap<LoggedChatMessage.Player> p_242153_, UUID p_242301_) -
collectReferencedContext
private static it.unimi.dsi.fastutil.ints.Int2ObjectMap<LoggedChatMessage.Player> collectReferencedContext(ChatLog p_242227_, int p_242178_, com.mojang.authlib.minecraft.report.AbuseReportLimits p_242421_) -
trailingContext
private static Stream<ChatLog.Entry<LoggedChatMessage.Player>> trailingContext(ChatLog p_242447_, int p_242340_, int p_242471_) -
walkMessageReferenceGraph
private static void walkMessageReferenceGraph(ChatLog p_242430_, int p_242234_, ChatReportBuilder.ReferencedMessageVisitor p_242920_) -
messageReferences
private static it.unimi.dsi.fastutil.ints.IntCollection messageReferences(ChatLog p_242933_, int p_242860_, PlayerChatMessage p_242922_) -
buildReportedChatMessage
private com.mojang.authlib.minecraft.report.ReportChatMessage buildReportedChatMessage(int p_242213_, LoggedChatMessage.Player p_242239_) -
buildReportedChatHeader
private com.mojang.authlib.minecraft.report.ReportChatMessage buildReportedChatHeader(LoggedChatMessageLink p_242212_) -
encodeComponent
-
copy
-