类 ChatReportBuilder
java.lang.Object
net.minecraft.client.multiplayer.chat.report.ChatReportBuilder
-
嵌套类概要
嵌套类修饰符和类型类说明static final record
class
static final record
-
字段概要
字段修饰符和类型字段说明private final com.mojang.authlib.minecraft.report.AbuseReportLimits
private final ChatReportBuilder.ChatReport
-
构造器概要
构造器构造器说明ChatReportBuilder
(UUID pReportedProfileId, com.mojang.authlib.minecraft.report.AbuseReportLimits pLimits) ChatReportBuilder
(ChatReportBuilder.ChatReport pReport, com.mojang.authlib.minecraft.report.AbuseReportLimits pLimits) -
方法概要
修饰符和类型方法说明com.mojang.datafixers.util.Either<ChatReportBuilder.Result,
ChatReportBuilder.CannotBuildReason> build
(ReportingContext pContext) private com.mojang.authlib.minecraft.report.ReportEvidence
buildEvidence
(ChatLog pChatLog) private com.mojang.authlib.minecraft.report.ReportChatMessage
buildReportedChatMessage
(LoggedChatMessage.Player pPlayer, boolean pMessageReported) comments()
copy()
boolean
boolean
isReported
(int pId) reason()
report()
it.unimi.dsi.fastutil.ints.IntSet
void
setComments
(String pComments) void
setReason
(ReportReason pReason) void
toggleReported
(int pId)
-
字段详细资料
-
report
-
limits
private final com.mojang.authlib.minecraft.report.AbuseReportLimits limits
-
-
构造器详细资料
-
ChatReportBuilder
public ChatReportBuilder(ChatReportBuilder.ChatReport pReport, com.mojang.authlib.minecraft.report.AbuseReportLimits pLimits) -
ChatReportBuilder
public ChatReportBuilder(UUID pReportedProfileId, com.mojang.authlib.minecraft.report.AbuseReportLimits pLimits)
-
-
方法详细资料
-
report
-
reportedProfileId
-
reportedMessages
public it.unimi.dsi.fastutil.ints.IntSet reportedMessages() -
comments
-
setComments
-
reason
-
setReason
-
toggleReported
public void toggleReported(int pId) -
isReported
public boolean isReported(int pId) -
hasContent
public boolean hasContent() -
checkBuildable
-
build
public com.mojang.datafixers.util.Either<ChatReportBuilder.Result,ChatReportBuilder.CannotBuildReason> build(ReportingContext pContext) -
buildEvidence
-
buildReportedChatMessage
private com.mojang.authlib.minecraft.report.ReportChatMessage buildReportedChatMessage(LoggedChatMessage.Player pPlayer, boolean pMessageReported) -
copy
-