Class SentMessage.Chat

java.lang.Object
net.minecraft.network.message.SentMessage.Chat
All Implemented Interfaces:
SentMessage
Enclosing interface:
SentMessage

public static class SentMessage.Chat extends Object implements SentMessage
The wrapper used for normal chat messages.

Text filtering can cause some players to not receive this kind of message. Message header is sent separately to those players.

Mappings:
Namespace Name
official sa$b
intermediary net/minecraft/class_7604$class_7607
named net/minecraft/network/message/SentMessage$Chat
  • Field Details

    • message

      private final SignedMessage message
      Mappings:
      Namespace Name Mixin selector
      official a Lsa$b;a:Lsb;
      intermediary field_39815 Lnet/minecraft/class_7604$class_7607;field_39815:Lnet/minecraft/class_7471;
      named message Lnet/minecraft/network/message/SentMessage$Chat;message:Lnet/minecraft/network/message/SignedMessage;
    • recipients

      private final Set<ServerPlayerEntity> recipients
      Mappings:
      Namespace Name Mixin selector
      official b Lsa$b;b:Ljava/util/Set;
      intermediary field_39816 Lnet/minecraft/class_7604$class_7607;field_39816:Ljava/util/Set;
      named recipients Lnet/minecraft/network/message/SentMessage$Chat;recipients:Ljava/util/Set;
  • Constructor Details

    • Chat

      public Chat(SignedMessage message)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lsa$b;<init>(Lsb;)V
      intermediary <init> Lnet/minecraft/class_7604$class_7607;<init>(Lnet/minecraft/class_7471;)V
      named <init> Lnet/minecraft/network/message/SentMessage$Chat;<init>(Lnet/minecraft/network/message/SignedMessage;)V
  • Method Details

    • method_45039

      public Text method_45039()
      Specified by:
      method_45039 in interface SentMessage
      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.
      Specified by:
      toPacket in interface SentMessage
      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

      public void afterPacketsSent(PlayerManager playerManager)
      Called after sending the message to applicable clients.
      Specified by:
      afterPacketsSent in interface SentMessage
      See Also:
      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