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 sc$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 Lsc$b;a:Lsd;
      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 Lsc$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> Lsc$b;<init>(Lsd;)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

    • getContent

      public Text getContent()
      Specified by:
      getContent in interface SentMessage
      Mappings:
      Namespace Name Mixin selector
      official a Lsc;a()Lrq;
      intermediary method_45039 Lnet/minecraft/class_7604;method_45039()Lnet/minecraft/class_2561;
      named getContent Lnet/minecraft/network/message/SentMessage;getContent()Lnet/minecraft/text/Text;
    • send

      public void send(ServerPlayerEntity sender, boolean filterMaskEnabled, MessageType.Parameters params)
      Specified by:
      send in interface SentMessage
      Mappings:
      Namespace Name Mixin selector
      official a Lsc;a(Lagh;ZLrm$a;)V
      intermediary method_45095 Lnet/minecraft/class_7604;method_45095(Lnet/minecraft/class_3222;ZLnet/minecraft/class_2556$class_7602;)V
      named send Lnet/minecraft/network/message/SentMessage;send(Lnet/minecraft/server/network/ServerPlayerEntity;ZLnet/minecraft/network/message/MessageType$Parameters;)V
    • 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 Lsc;a(Laiz;)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