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, com.mojang.authlib.GameProfile sender, MessageTrustStatus trustStatus) MessageTrustStatus.createIndicator
(SignedMessage message) private MessageTrustStatus
MessageHandler.getStatus
(SignedMessage message, Text decorated, Instant receptionTimestamp) Returns the trust status ofmessage
.static MessageTrustStatus
MessageTrustStatus.getStatus
(SignedMessage message, Text decorated, Instant receptionTimestamp) private static boolean
MessageTrustStatus.isModified
(SignedMessage message, Text decorated) void
MessageHandler.onChatMessage
(SignedMessage message, com.mojang.authlib.GameProfile sender, MessageType.Parameters params) private boolean
MessageHandler.processChatMessageInternal
(MessageType.Parameters params, SignedMessage message, Text decorated, com.mojang.authlib.GameProfile sender, boolean onlyShowSecureChat, Instant receptionTimestamp) Processes a chat message. -
Uses of SignedMessage in net.minecraft.client.session.report
Modifier and TypeFieldDescriptionprivate @Nullable SignedMessage
MessagesListAdder.lastMessage
private SignedMessage
ContextMessageCollector.ContextMessage.message
Modifier and TypeMethodDescriptionvoid
ContextMessageCollector.add
(SignedMessage message) (package private) boolean
ContextMessageCollector.ContextMessage.linkTo
(SignedMessage message) boolean
ContextMessageCollector.tryLink
(SignedMessage message) -
Uses of SignedMessage in net.minecraft.client.session.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, SignedMessage message, MessageTrustStatus trustStatus) Returns the received message constructed from a chat message.ModifierConstructorDescriptionChatMessage
(com.mojang.authlib.GameProfile gameProfile, SignedMessage signedMessage, MessageTrustStatus messageTrustStatus) -
Uses of SignedMessage in net.minecraft.command.argument
Modifier and TypeMethodDescriptionprivate static void
MessageArgumentType.chain
(Consumer<SignedMessage> callback, ServerCommandSource source, SignedMessage message) private static void
MessageArgumentType.chainUnsigned
(Consumer<SignedMessage> callback, ServerCommandSource source, SignedMessage message) private static CompletableFuture<FilteredMessage>
MessageArgumentType.filterText
(ServerCommandSource source, SignedMessage message) Modifier and TypeMethodDescriptionprivate static void
MessageArgumentType.chain
(Consumer<SignedMessage> callback, ServerCommandSource source, SignedMessage message) private static void
MessageArgumentType.chainUnsigned
(Consumer<SignedMessage> callback, ServerCommandSource source, SignedMessage message) static void
MessageArgumentType.getSignedMessage
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, Consumer<SignedMessage> callback) -
Uses of SignedMessage in net.minecraft.network.message
Modifier and TypeFieldDescriptionprivate @Nullable SignedMessage
MessageVerifier.Impl.lastVerifiedMessage
private final SignedMessage
SentMessage.Chat.message
The field for themessage
record component.Modifier and TypeFieldDescriptionprivate final Map<String,
SignedMessage> SignedCommandArguments.Impl.arguments
The field for thearguments
record component.static final com.mojang.serialization.MapCodec<SignedMessage>
SignedMessage.CODEC
Modifier and TypeMethodDescriptionMessageVerifier.ensureVerified
(SignedMessage message) MessageVerifier.Impl.ensureVerified
(SignedMessage message) SignedCommandArguments.getMessage
(String argumentName) SignedCommandArguments.Impl.getMessage
(String argumentName) SentMessage.Chat.message()
Returns the value of themessage
record component.static SignedMessage
SignedMessage.ofUnsigned
(String content) Returns a new signed message with empty signature.static SignedMessage
SignedMessage.ofUnsigned
(UUID sender, String content) Returns a new signed message with given sender UUID and empty signature.SignedMessage.stripSignature()
MessageChain.Unpacker.unpack
(@Nullable MessageSignatureData signature, MessageBody body) 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.Modifier and TypeMethodDescriptionMessageVerifier.ensureVerified
(SignedMessage message) MessageVerifier.Impl.ensureVerified
(SignedMessage message) static SentMessage
SentMessage.of
(SignedMessage message) Returns the wrappedmessage
.private boolean
MessageVerifier.Impl.verify
(SignedMessage message) private boolean
MessageVerifier.Impl.verifyPrecedingSignature
(SignedMessage message) ModifierConstructorDescriptionChat
(SignedMessage message) Creates an instance of aChat
record class. -
Uses of SignedMessage in net.minecraft.server
Modifier and TypeMethodDescriptionprivate void
PlayerManager.broadcast
(SignedMessage message, Predicate<ServerPlayerEntity> shouldSendFiltered, @Nullable ServerPlayerEntity sender, 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.private boolean
PlayerManager.verify
(SignedMessage message) Returns whethermessage
is not expired and is verified. -
Uses of SignedMessage in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static void
MessageCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, SignedMessage message) private static void
TeamMsgCommand.execute
(ServerCommandSource source, Entity entity, Team team, List<ServerPlayerEntity> recipients, SignedMessage message) -
Uses of SignedMessage in net.minecraft.server.network
Modifier and TypeMethodDescriptionprivate SignedMessage
ServerPlayNetworkHandler.getSignedMessage
(ChatMessageC2SPacket packet, LastSeenMessageList lastSeenMessages) Modifier and TypeMethodDescriptionprivate Map<String,
SignedMessage> ServerPlayNetworkHandler.collectArgumentMessages
(CommandExecutionC2SPacket packet, SignedArgumentList<?> arguments, LastSeenMessageList lastSeenMessages) Returns a map of argument name and value as signed messages.Modifier and TypeMethodDescriptionvoid
ServerPlayNetworkHandler.addPendingAcknowledgment
(SignedMessage message) private void
ServerPlayNetworkHandler.handleDecoratedMessage
(SignedMessage message) void
ServerPlayNetworkHandler.sendChatMessage
(SignedMessage message, MessageType.Parameters params)