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.

@FunctionalInterface public interface MessageDecorator
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
named net/minecraft/network/message/MessageDecorator
intermediary net/minecraft/class_7492
official xk
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final MessageDecorator
    An empty message decorator that returns the original message.
  • Method Summary

    Modifier and Type
    Method
    Description
     
  • Field Details

    • NOOP

      static final MessageDecorator NOOP
      An empty message decorator that returns the original message.
      Mappings:
      Namespace Name Mixin selector
      named NOOP Lnet/minecraft/network/message/MessageDecorator;NOOP:Lnet/minecraft/network/message/MessageDecorator;
      intermediary field_39384 Lnet/minecraft/class_7492;field_39384:Lnet/minecraft/class_7492;
      official a Lxk;a:Lxk;
  • Method Details

    • decorate

      Text decorate(@Nullable @Nullable ServerPlayerEntity sender, Text message)
      Mappings:
      Namespace Name Mixin selector
      named decorate Lnet/minecraft/network/message/MessageDecorator;decorate(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/text/Text;)Lnet/minecraft/text/Text;
      intermediary decorate Lnet/minecraft/class_7492;decorate(Lnet/minecraft/class_3222;Lnet/minecraft/class_2561;)Lnet/minecraft/class_2561;
      official decorate Lxk;decorate(Larg;Lxp;)Lxp;