Interface SentMessage

All Known Implementing Classes:
SentMessage.Chat, SentMessage.Profileless

public interface SentMessage
A class wrapping SignedMessage on the server to allow custom behavior for sending messages.
Mappings:
Namespace Name
official sa
intermediary net/minecraft/class_7604
named net/minecraft/network/message/SentMessage
  • Method Details

    • method_45039

      Text method_45039()
      Mappings:
      Namespace Name Mixin selector
      official a Lsa;a()Lrp;
      intermediary method_45039 Lnet/minecraft/class_7604;method_45039()Lnet/minecraft/class_2561;
      named method_45039 Lnet/minecraft/network/message/SentMessage;method_45039()Lnet/minecraft/text/Text;
    • toPacket

      Returns the chat message packet to be sent.
      Returns:
      the chat message packet to be sent
      Mappings:
      Namespace Name Mixin selector
      official a Lsa;a(Lagf;Lrl$a;)Lvd;
      intermediary method_44853 Lnet/minecraft/class_7604;method_44853(Lnet/minecraft/class_3222;Lnet/minecraft/class_2556$class_7602;)Lnet/minecraft/class_7438;
      named toPacket Lnet/minecraft/network/message/SentMessage;toPacket(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/network/message/MessageType$Parameters;)Lnet/minecraft/network/packet/s2c/play/ChatMessageS2CPacket;
    • afterPacketsSent

      void afterPacketsSent(PlayerManager playerManager)
      Called after sending the message to applicable clients.
      See Also:
      API Note:
      This is used to send the message header to clients that didn't receive the message due to text filtering.
      Mappings:
      Namespace Name Mixin selector
      official a Lsa;a(Laix;)V
      intermediary method_44856 Lnet/minecraft/class_7604;method_44856(Lnet/minecraft/class_3324;)V
      named afterPacketsSent Lnet/minecraft/network/message/SentMessage;afterPacketsSent(Lnet/minecraft/server/PlayerManager;)V
    • of

      static SentMessage of(SignedMessage message)
      Returns the wrapped message.
      Returns:
      the wrapped message
      Mappings:
      Namespace Name Mixin selector
      official a Lsa;a(Lsb;)Lsa;
      intermediary method_44857 Lnet/minecraft/class_7604;method_44857(Lnet/minecraft/class_7471;)Lnet/minecraft/class_7604;
      named of Lnet/minecraft/network/message/SentMessage;of(Lnet/minecraft/network/message/SignedMessage;)Lnet/minecraft/network/message/SentMessage;
    • of

      Returns the wrapped message.
      Returns:
      the wrapped message
      Mappings:
      Namespace Name Mixin selector
      official a Lsa;a(Lagt;)Lagt;
      intermediary method_44854 Lnet/minecraft/class_7604;method_44854(Lnet/minecraft/class_5837;)Lnet/minecraft/class_5837;
      named of Lnet/minecraft/network/message/SentMessage;of(Lnet/minecraft/server/filter/FilteredMessage;)Lnet/minecraft/server/filter/FilteredMessage;