Uses of Record Class
net.minecraft.network.message.SignedMessage
Package
Description
-
Uses of SignedMessage in net.minecraft.client.network
Modifier and TypeMethodDescriptionvoid
ClientPlayNetworkHandler.acknowledge
(SignedMessage message, boolean displayed) -
Uses of SignedMessage in net.minecraft.client.network.message
Modifier and TypeMethodDescriptionprivate void
MessageHandler.addToChatLog
(SignedMessage message, MessageType.Parameters params, @Nullable PlayerListEntry senderEntry, MessageTrustStatus trustStatus) MessageTrustStatus.createIndicator
(SignedMessage message) private MessageTrustStatus
MessageHandler.getStatus
(SignedMessage message, Text decorated, @Nullable PlayerListEntry senderEntry, Instant receptionTimestamp) Returns the trust status ofmessage
.static MessageTrustStatus
MessageTrustStatus.getStatus
(SignedMessage message, Text decorated, @Nullable PlayerListEntry sender, Instant receptionTimestamp) void
MessageHandler.onChatMessage
(SignedMessage message, MessageType.Parameters params) Called when a chat message is received.(package private) boolean
MessageHandler.processChatMessage
(MessageType.Parameters params, SignedMessage message, Text decorated, @Nullable PlayerListEntry senderEntry, boolean onlyShowSecureChat, Instant receptionTimestamp) Processes a chat message and sends acknowledgment to the server.private boolean
MessageHandler.processChatMessageInternal
(MessageType.Parameters params, SignedMessage message, Text decorated, @Nullable PlayerListEntry senderEntry, boolean onlyShowSecureChat, Instant receptionTimestamp) Processes a chat message.(package private) boolean
MessageHandler.processProfilelessMessage
(MessageType.Parameters params, SignedMessage message, Text decorated) Processes a message that is sent as chat message but lacks the sender. -
Uses of SignedMessage in net.minecraft.client.report
Modifier and TypeMethodDescriptionprivate static IntCollection
ChatAbuseReport.collectIndicesUntilLastSeen
(ChatLog log, int selectedIndex, SignedMessage message) -
Uses of SignedMessage in net.minecraft.client.report.log
Modifier and TypeFieldDescriptionprivate final SignedMessage
ReceivedMessage.ChatMessage.message
The field for themessage
record component.Modifier and TypeMethodDescriptionReceivedMessage.ChatMessage.message()
Returns the value of themessage
record component.Modifier and TypeMethodDescriptionstatic ReceivedMessage.ChatMessage
ReceivedMessage.of
(com.mojang.authlib.GameProfile gameProfile, Text displayName, SignedMessage message, MessageTrustStatus trustStatus) Returns the received message constructed from a chat message's elements.ModifierConstructorDescriptionChatMessage
(com.mojang.authlib.GameProfile gameProfile, Text text, SignedMessage signedMessage, MessageTrustStatus messageTrustStatus) -
Uses of SignedMessage in net.minecraft.command.argument
Modifier and TypeFieldDescriptionprivate final SignedMessage
MessageArgumentType.SignedMessage.signedArgument
The field for thesignedArgument
record component.Modifier and TypeMethodDescriptionMessageArgumentType.SignedMessage.signedArgument()
Returns the value of thesignedArgument
record component.Modifier and TypeMethodDescriptionvoid
MessageArgumentType.SignedMessage.decorate
(ServerCommandSource source, Consumer<SignedMessage> callback) -
Uses of SignedMessage in net.minecraft.network.message
Modifier and TypeFieldDescriptionprivate final SignedMessage
SentMessage.Chat.message
private final SignedMessage
SentMessage.Profileless.message
Modifier and TypeFieldDescriptionprivate final Map<String,
SignedMessage> SignedCommandArguments.Impl.arguments
The field for thearguments
record component.Modifier and TypeMethodDescriptionstatic SignedMessage
MessageDecorator.attachIfNotDecorated
(SignedMessage message, Text attached) private static SignedMessage
MessageChain.createMessage
(MessageChain.Signature signature, @Nullable MessageSignatureData precedingSignature, MessageMetadata metadata, DecoratedContents contents, LastSeenMessageList lastSeenMessage) SignedCommandArguments.getMessage
(String argumentName) SignedCommandArguments.Impl.getMessage
(String argumentName) static SignedMessage
SignedMessage.ofUnsigned
(DecoratedContents content) Returns a new signed message with empty signature.static SignedMessage
SignedMessage.ofUnsigned
(MessageMetadata metadata, DecoratedContents content) Returns a new signed message with given metadata and empty signature.private SignedMessage
MessageChain.unpack
(MessageChain.Signature signature, MessageMetadata metadata, DecoratedContents contents, LastSeenMessageList lastSeenMessages) MessageChain.Unpacker.unpack
(MessageChain.Signature signature, MessageMetadata metadata, DecoratedContents content, LastSeenMessageList lastSeenMessages) SignedMessage.withFilterMask
(FilterMask filterMask) Returns the signed chat message withfilterMask
added.SignedMessage.withFilterMaskEnabled
(boolean enabled) Returns this signed chat message ifenabled
istrue
, otherwise a new signed chat message without filtered parts.SignedMessage.withoutUnsigned()
Returns the signed chat message withunsignedContent
removed if it exists.SignedMessage.withUnsignedContent
(Text unsignedContent) Modifier and TypeMethodDescriptionSignedCommandArguments.Impl.arguments()
Returns the value of thearguments
record component.default CompletableFuture<SignedMessage>
MessageDecorator.decorate
(@Nullable ServerPlayerEntity sender, SignedMessage message) Modifier and TypeMethodDescriptionstatic SignedMessage
MessageDecorator.attachIfNotDecorated
(SignedMessage message, Text attached) default CompletableFuture<SignedMessage>
MessageDecorator.decorate
(@Nullable ServerPlayerEntity sender, SignedMessage message) static SentMessage
SentMessage.of
(SignedMessage message) Returns the wrappedmessage
.MessageVerifier.Impl.verify
(SignedMessage message) Returns the status of verifying the message.MessageVerifier.Unsigned.verify
(SignedMessage message) Returns the status of verifying the message.MessageVerifier.verify
(SignedMessage message) Returns the status of verifying the message. -
Uses of SignedMessage in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionprivate final SignedMessage
ChatMessageS2CPacket.message
The field for themessage
record component.Modifier and TypeMethodDescriptionChatMessageS2CPacket.message()
Returns the value of themessage
record component.ModifierConstructorDescriptionChatMessageS2CPacket
(SignedMessage signedMessage, MessageType.Serialized serialized) MessageHeaderS2CPacket
(SignedMessage message) -
Uses of SignedMessage in net.minecraft.server
Modifier and TypeMethodDescriptionprivate void
PlayerManager.broadcast
(SignedMessage message, Predicate<ServerPlayerEntity> shouldSendFiltered, @Nullable ServerPlayerEntity sender, MessageSourceProfile sourceProfile, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.void
PlayerManager.broadcast
(SignedMessage message, ServerCommandSource source, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.void
PlayerManager.broadcast
(SignedMessage message, ServerPlayerEntity sender, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.void
PlayerManager.sendMessageHeader
(SignedMessage message, Set<ServerPlayerEntity> except) Sendsmessage
's headers (only) to all players exceptexcept
.private boolean
PlayerManager.verify
(SignedMessage message, MessageSourceProfile profile) Returns whethermessage
is not expired and is verified. -
Uses of SignedMessage in net.minecraft.server.network
Modifier and TypeMethodDescriptionprivate SignedMessage
ServerPlayNetworkHandler.getSignedMessage
(ChatMessageC2SPacket packet) Modifier and TypeMethodDescriptionprivate Map<String,
SignedMessage> ServerPlayNetworkHandler.collectArgumentMessages
(CommandExecutionC2SPacket packet, DecoratableArgumentList<?> arguments) Returns a map of argument name and value as signed messages.Modifier and TypeMethodDescriptionvoid
ServerPlayNetworkHandler.addPendingAcknowledgment
(SignedMessage message) private boolean
ServerPlayNetworkHandler.canAcceptMessage
(SignedMessage message) Returns whethermessage
can be accepted.private void
ServerPlayNetworkHandler.handleDecoratedMessage
(SignedMessage message)