Uses of Record Class
net.minecraft.network.message.DecoratedContents
Package
Description
-
Uses of DecoratedContents in net.minecraft.client.network
Modifier and TypeMethodDescriptionprivate DecoratedContents
ClientPlayerEntity.toDecoratedContents
(String message, @Nullable Text preview) Modifier and TypeMethodDescriptionprivate MessageSignatureData
ClientPlayerEntity.signChatMessage
(MessageMetadata metadata, DecoratedContents content, LastSeenMessageList lastSeenMessages) Signs the chat message. -
Uses of DecoratedContents in net.minecraft.network.message
Modifier and TypeFieldDescriptionprivate final DecoratedContents
MessageBody.content
The field for thecontent
record component.Modifier and TypeMethodDescriptionMessageBody.content()
Returns the value of thecontent
record component.SignedMessage.getSignedContent()
static DecoratedContents
DecoratedContents.read
(PacketByteBuf buf) Modifier and TypeMethodDescriptionprivate static SignedMessage
MessageChain.createMessage
(MessageChain.Signature signature, @Nullable MessageSignatureData precedingSignature, MessageMetadata metadata, DecoratedContents contents, LastSeenMessageList lastSeenMessage) FilterMask.filter
(DecoratedContents contents) 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 MessageChain.Signature
MessageChain.pack
(Signer signer, MessageMetadata metadata, DecoratedContents contents, LastSeenMessageList lastSeenMessages) MessageChain.Packer.pack
(Signer signer, MessageMetadata metadata, DecoratedContents contents, LastSeenMessageList lastSeenMessages) private static MessageSignatureData
MessageChain.sign
(Signer signer, MessageMetadata metadata, @Nullable MessageSignatureData precedingSignature, DecoratedContents contents, LastSeenMessageList lastSeenMessages) 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) MessageBody.withContent
(DecoratedContents content) Returns a new message body with its content replaced withcontent
.static void
DecoratedContents.write
(PacketByteBuf buf, DecoratedContents contents) ModifierConstructorDescriptionMessageBody
(DecoratedContents decoratedContents, Instant instant, long long2, LastSeenMessageList lastSeenMessageList) -
Uses of DecoratedContents in net.minecraft.server.network
Modifier and TypeMethodDescriptionprivate DecoratedContents
ServerPlayNetworkHandler.getDecoratedContents
(ChatMessageC2SPacket packet) Returns the decorated contents forpacket
.