Uses of Record Class
net.minecraft.network.message.SignedMessage
Packages that use SignedMessage
Package
Description
-
Uses of SignedMessage in net.minecraft.client.network
Methods in net.minecraft.client.network with parameters of type SignedMessageModifier and TypeMethodDescriptionvoid
ClientPlayNetworkHandler.acknowledge
(SignedMessage message, boolean displayed) -
Uses of SignedMessage in net.minecraft.client.network.message
Methods in net.minecraft.client.network.message with parameters of type SignedMessageModifier 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
Methods in net.minecraft.client.report with parameters of type SignedMessageModifier and TypeMethodDescriptionprivate static IntCollection
ChatAbuseReport.collectIndicesUntilLastSeen
(ChatLog log, int selectedIndex, SignedMessage message) -
Uses of SignedMessage in net.minecraft.client.report.log
Fields in net.minecraft.client.report.log declared as SignedMessageModifier and TypeFieldDescriptionprivate final SignedMessage
ReceivedMessage.ChatMessage.message
The field for themessage
record component.Methods in net.minecraft.client.report.log that return SignedMessageModifier and TypeMethodDescriptionReceivedMessage.ChatMessage.message()
Returns the value of themessage
record component.Methods in net.minecraft.client.report.log with parameters of type SignedMessageModifier 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.Constructors in net.minecraft.client.report.log with parameters of type SignedMessageModifierConstructorDescriptionChatMessage
(com.mojang.authlib.GameProfile gameProfile, Text text, SignedMessage signedMessage, MessageTrustStatus messageTrustStatus) -
Uses of SignedMessage in net.minecraft.command.argument
Fields in net.minecraft.command.argument declared as SignedMessageModifier and TypeFieldDescriptionprivate final SignedMessage
MessageArgumentType.SignedMessage.signedArgument
The field for thesignedArgument
record component.Methods in net.minecraft.command.argument that return SignedMessageModifier and TypeMethodDescriptionMessageArgumentType.SignedMessage.signedArgument()
Returns the value of thesignedArgument
record component.Method parameters in net.minecraft.command.argument with type arguments of type SignedMessageModifier and TypeMethodDescriptionvoid
MessageArgumentType.SignedMessage.decorate
(ServerCommandSource source, Consumer<SignedMessage> callback) Constructors in net.minecraft.command.argument with parameters of type SignedMessage -
Uses of SignedMessage in net.minecraft.network.message
Fields in net.minecraft.network.message declared as SignedMessageModifier and TypeFieldDescriptionprivate final SignedMessage
SentMessage.Chat.message
private final SignedMessage
SentMessage.Profileless.message
Fields in net.minecraft.network.message with type parameters of type SignedMessageModifier and TypeFieldDescriptionprivate final Map<String,
SignedMessage> SignedCommandArguments.Impl.arguments
The field for thearguments
record component.Methods in net.minecraft.network.message that return SignedMessageModifier 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) Methods in net.minecraft.network.message that return types with arguments of type SignedMessageModifier and TypeMethodDescriptionSignedCommandArguments.Impl.arguments()
Returns the value of thearguments
record component.default CompletableFuture<SignedMessage>
MessageDecorator.decorate
(@Nullable ServerPlayerEntity sender, SignedMessage message) Methods in net.minecraft.network.message with parameters of type SignedMessageModifier 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.Constructors in net.minecraft.network.message with parameters of type SignedMessageConstructor parameters in net.minecraft.network.message with type arguments of type SignedMessage -
Uses of SignedMessage in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as SignedMessageModifier and TypeFieldDescriptionprivate final SignedMessage
ChatMessageS2CPacket.message
The field for themessage
record component.Methods in net.minecraft.network.packet.s2c.play that return SignedMessageModifier and TypeMethodDescriptionChatMessageS2CPacket.message()
Returns the value of themessage
record component.Constructors in net.minecraft.network.packet.s2c.play with parameters of type SignedMessageModifierConstructorDescriptionChatMessageS2CPacket
(SignedMessage signedMessage, MessageType.Serialized serialized) MessageHeaderS2CPacket
(SignedMessage message) -
Uses of SignedMessage in net.minecraft.server
Methods in net.minecraft.server with parameters of type SignedMessageModifier 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
Methods in net.minecraft.server.network that return SignedMessageModifier and TypeMethodDescriptionprivate SignedMessage
ServerPlayNetworkHandler.getSignedMessage
(ChatMessageC2SPacket packet) Methods in net.minecraft.server.network that return types with arguments of type SignedMessageModifier and TypeMethodDescriptionprivate Map<String,
SignedMessage> ServerPlayNetworkHandler.collectArgumentMessages
(CommandExecutionC2SPacket packet, DecoratableArgumentList<?> arguments) Returns a map of argument name and value as signed messages.Methods in net.minecraft.server.network with parameters of type SignedMessageModifier and TypeMethodDescriptionvoid
ServerPlayNetworkHandler.addPendingAcknowledgment
(SignedMessage message) private boolean
ServerPlayNetworkHandler.canAcceptMessage
(SignedMessage message) Returns whethermessage
can be accepted.private void
ServerPlayNetworkHandler.handleDecoratedMessage
(SignedMessage message)