Uses of Record Class
net.minecraft.network.chat.PlayerChatMessage
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of PlayerChatMessage in net.minecraft.client.gui.screens.reporting
-
Uses of PlayerChatMessage in net.minecraft.client.multiplayer
Modifier and TypeMethodDescriptionvoid
ClientPacketListener.markMessageAsProcessed
(PlayerChatMessage p_242356_, boolean p_242455_) -
Uses of PlayerChatMessage in net.minecraft.client.multiplayer.chat
Modifier and TypeFieldDescriptionprivate final PlayerChatMessage
LoggedChatMessage.Player.message
The field for themessage
record component.Modifier and TypeMethodDescriptionLoggedChatMessage.Player.message()
Returns the value of themessage
record component.Modifier and TypeMethodDescriptionChatTrustLevel.createTag
(PlayerChatMessage p_240632_) static ChatTrustLevel
ChatTrustLevel.evaluate
(PlayerChatMessage p_248663_, Component p_248544_, Instant p_252024_) private ChatTrustLevel
ChatListener.evaluateTrustLevel
(PlayerChatMessage p_251246_, Component p_250576_, Instant p_249995_) void
ChatListener.handlePlayerChatMessage
(PlayerChatMessage p_251553_, com.mojang.authlib.GameProfile p_250022_, ChatType.Bound p_252158_) private static boolean
ChatTrustLevel.isModified
(PlayerChatMessage p_252093_, Component p_250811_) private void
ChatListener.logPlayerMessage
(PlayerChatMessage p_252155_, ChatType.Bound p_249730_, com.mojang.authlib.GameProfile p_248589_, ChatTrustLevel p_248881_) static LoggedChatMessage.Player
LoggedChatMessage.player
(com.mojang.authlib.GameProfile p_261832_, PlayerChatMessage p_261491_, ChatTrustLevel p_262141_) private boolean
ChatListener.showMessageToPlayer
(ChatType.Bound p_251766_, PlayerChatMessage p_249430_, Component p_249231_, com.mojang.authlib.GameProfile p_249177_, boolean p_251638_, Instant p_249665_) ModifierConstructorDescriptionPlayer
(com.mojang.authlib.GameProfile profile, PlayerChatMessage message, ChatTrustLevel trustLevel) Creates an instance of aPlayer
record class. -
Uses of PlayerChatMessage in net.minecraft.client.multiplayer.chat.report
Modifier and TypeFieldDescriptionprivate PlayerChatMessage
ChatReportContextBuilder.Collector.lastChainMessage
Modifier and TypeMethodDescription(package private) boolean
ChatReportContextBuilder.Collector.accept
(PlayerChatMessage p_252313_) boolean
ChatReportContextBuilder.acceptContext
(PlayerChatMessage p_250059_) void
ChatReportContextBuilder.trackContext
(PlayerChatMessage p_252057_) -
Uses of PlayerChatMessage in net.minecraft.commands
Modifier and TypeFieldDescriptionprivate final Map<String,
PlayerChatMessage> CommandSigningContext.SignedArguments.arguments
The field for thearguments
record component.Modifier and TypeMethodDescriptionCommandSigningContext.getArgument
(String p_230580_) CommandSigningContext.SignedArguments.getArgument
(String p_242852_) Modifier and TypeMethodDescriptionCommandSigningContext.SignedArguments.arguments()
Returns the value of thearguments
record component.ModifierConstructorDescriptionSignedArguments
(Map<String, PlayerChatMessage> arguments) Creates an instance of aSignedArguments
record class. -
Uses of PlayerChatMessage in net.minecraft.commands.arguments
Modifier and TypeMethodDescriptionprivate static CompletableFuture<FilteredText>
MessageArgument.filterPlainText
(CommandSourceStack p_252063_, PlayerChatMessage p_251184_) private static void
MessageArgument.resolveDisguisedMessage
(Consumer<PlayerChatMessage> p_249162_, CommandSourceStack p_248759_, PlayerChatMessage p_252332_) private static void
MessageArgument.resolveSignedMessage
(Consumer<PlayerChatMessage> p_250000_, CommandSourceStack p_252335_, PlayerChatMessage p_249420_) Modifier and TypeMethodDescriptionstatic void
MessageArgument.resolveChatMessage
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_249433_, String p_248718_, Consumer<PlayerChatMessage> p_249460_) private static void
MessageArgument.resolveDisguisedMessage
(Consumer<PlayerChatMessage> p_249162_, CommandSourceStack p_248759_, PlayerChatMessage p_252332_) private static void
MessageArgument.resolveSignedMessage
(Consumer<PlayerChatMessage> p_250000_, CommandSourceStack p_252335_, PlayerChatMessage p_249420_) -
Uses of PlayerChatMessage in net.minecraft.network.chat
Modifier and TypeFieldDescriptionprivate PlayerChatMessage
SignedMessageValidator.KeyBased.lastMessage
private final PlayerChatMessage
OutgoingChatMessage.Player.message
The field for themessage
record component.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<PlayerChatMessage>
PlayerChatMessage.MAP_CODEC
Modifier and TypeMethodDescriptionPlayerChatMessage.filter
(boolean p_243223_) PlayerChatMessage.filter
(FilterMask p_243320_) OutgoingChatMessage.Player.message()
Returns the value of themessage
record component.PlayerChatMessage.removeUnsignedContent()
static PlayerChatMessage
SignedMessageChain.Decoder.unpack
(MessageSignature p_249082_, SignedMessageBody p_250981_) static PlayerChatMessage
PlayerChatMessage.withUnsignedContent
(Component p_242164_) Modifier and TypeMethodDescriptionstatic OutgoingChatMessage
OutgoingChatMessage.create
(PlayerChatMessage p_249173_) void
MessageSignatureCache.push
(PlayerChatMessage p_248938_) boolean
SignedMessageValidator.KeyBased.updateAndValidate
(PlayerChatMessage p_251182_) boolean
SignedMessageValidator.updateAndValidate
(PlayerChatMessage p_251036_) private boolean
SignedMessageValidator.KeyBased.validate
(PlayerChatMessage p_297346_) private boolean
SignedMessageValidator.KeyBased.validateChain
(PlayerChatMessage p_250412_) ModifierConstructorDescriptionPlayer
(PlayerChatMessage message) Creates an instance of aPlayer
record class. -
Uses of PlayerChatMessage in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static void
MsgCommand.sendMessage
(CommandSourceStack p_250209_, Collection<ServerPlayer> p_252344_, PlayerChatMessage p_249416_) private static void
TeamMsgCommand.sendMessage
(CommandSourceStack p_248778_, Entity p_248891_, PlayerTeam p_250504_, List<ServerPlayer> p_249706_, PlayerChatMessage p_249707_) -
Uses of PlayerChatMessage in net.minecraft.server.network
Modifier and TypeMethodDescriptionprivate PlayerChatMessage
ServerGamePacketListenerImpl.getSignedMessage
(ServerboundChatPacket p_251061_, LastSeenMessages p_250566_) Modifier and TypeMethodDescriptionprivate Map<String,
PlayerChatMessage> ServerGamePacketListenerImpl.collectSignedArguments
(ServerboundChatCommandPacket p_249441_, SignableCommand<?> p_250039_, LastSeenMessages p_249207_) Modifier and TypeMethodDescriptionvoid
ServerGamePacketListenerImpl.addPendingMessage
(PlayerChatMessage p_242439_) private void
ServerGamePacketListenerImpl.broadcastChatMessage
(PlayerChatMessage p_243277_) void
ServerGamePacketListenerImpl.sendPlayerChatMessage
(PlayerChatMessage p_250321_, ChatType.Bound p_250910_) -
Uses of PlayerChatMessage in net.minecraft.server.players
Modifier and TypeMethodDescriptionprivate void
PlayerList.broadcastChatMessage
(PlayerChatMessage p_249952_, Predicate<ServerPlayer> p_250784_, ServerPlayer p_249623_, ChatType.Bound p_250276_) void
PlayerList.broadcastChatMessage
(PlayerChatMessage p_243229_, CommandSourceStack p_243254_, ChatType.Bound p_243255_) void
PlayerList.broadcastChatMessage
(PlayerChatMessage p_243264_, ServerPlayer p_243234_, ChatType.Bound p_243204_) private boolean
PlayerList.verifyChatTrusted
(PlayerChatMessage p_251384_) -
Uses of PlayerChatMessage in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic @Nullable Component
ForgeHooksClient.onClientPlayerChat
(ChatType.Bound boundChatType, Component message, PlayerChatMessage playerChatMessage, UUID sender) -
Uses of PlayerChatMessage in net.minecraftforge.client.event
Modifier and TypeFieldDescriptionprivate final PlayerChatMessage
ClientChatReceivedEvent.Player.playerChatMessage
Modifier and TypeMethodDescriptionClientChatReceivedEvent.Player.getPlayerChatMessage()
Returns the full player chat message.ModifierConstructorDescriptionPlayer
(ChatType.Bound boundChatType, Component message, PlayerChatMessage playerChatMessage, UUID sender) -
Uses of PlayerChatMessage in net.minecraftforge.common.util
Modifier and TypeMethodDescriptionvoid
FakePlayer.NetHandler.addPendingMessage
(PlayerChatMessage message) void
FakePlayer.NetHandler.sendPlayerChatMessage
(PlayerChatMessage message, ChatType.Bound boundChatType)