Package net.minecraft.network.message
Interface MessageDecorator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Message decorator decorates the chat messages and other messages server-side.
Currently, only one message decorator can exist at a time. The message decorator
that is currently used can be obtained by
MinecraftServer.getMessageDecorator()
.
Messages decorated using message decorator are still marked as verifiable if there is no change in its text or used fonts. If they change, the message cannot be verified. Before 1.19.2, chat previews allowed signing of such message; however that feature was removed in 1.19.3.
- Mappings:
Namespace Name official va
intermediary net/minecraft/class_7492
named net/minecraft/network/message/MessageDecorator
-
Field Summary
Modifier and TypeFieldDescriptionstatic final MessageDecorator
An empty message decorator that returns the original message. -
Method Summary
-
Field Details
-
NOOP
An empty message decorator that returns the original message.- Mappings:
Namespace Name Mixin selector official a
Lva;a:Lva;
intermediary field_39384
Lnet/minecraft/class_7492;field_39384:Lnet/minecraft/class_7492;
named NOOP
Lnet/minecraft/network/message/MessageDecorator;NOOP:Lnet/minecraft/network/message/MessageDecorator;
-
-
Method Details
-
decorate
- Mappings:
Namespace Name Mixin selector official decorate
Lva;decorate(Lane;Lvf;)Lvf;
intermediary decorate
Lnet/minecraft/class_7492;decorate(Lnet/minecraft/class_3222;Lnet/minecraft/class_2561;)Lnet/minecraft/class_2561;
named decorate
Lnet/minecraft/network/message/MessageDecorator;decorate(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/text/Text;)Lnet/minecraft/text/Text;
-