Class GameMessageS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.play.GameMessageS2CPacket
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public class GameMessageS2CPacket extends Object implements Packet<ClientPlayPacketListener>
A packet used to send a game message to the client.
See Also:
Mappings:
Namespace Name
official rk
intermediary net/minecraft/class_2635
named net/minecraft/network/packet/s2c/play/GameMessageS2CPacket
  • Field Details

    • message

      private final Text message
      Mappings:
      Namespace Name Mixin selector
      official a Lrk;a:Lpz;
      intermediary field_12112 Lnet/minecraft/class_2635;field_12112:Lnet/minecraft/class_2561;
      named message Lnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;message:Lnet/minecraft/text/Text;
    • type

      private final MessageType type
      Mappings:
      Namespace Name Mixin selector
      official b Lrk;b:Lpw;
      intermediary field_12113 Lnet/minecraft/class_2635;field_12113:Lnet/minecraft/class_2556;
      named type Lnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;type:Lnet/minecraft/network/MessageType;
    • sender

      private final UUID sender
      Mappings:
      Namespace Name Mixin selector
      official c Lrk;c:Ljava/util/UUID;
      intermediary field_25133 Lnet/minecraft/class_2635;field_25133:Ljava/util/UUID;
      named sender Lnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;sender:Ljava/util/UUID;
  • Constructor Details

    • GameMessageS2CPacket

      public GameMessageS2CPacket(Text message, MessageType type, UUID sender)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrk;<init>(Lpz;Lpw;Ljava/util/UUID;)V
      intermediary <init> Lnet/minecraft/class_2635;<init>(Lnet/minecraft/class_2561;Lnet/minecraft/class_2556;Ljava/util/UUID;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;<init>(Lnet/minecraft/text/Text;Lnet/minecraft/network/MessageType;Ljava/util/UUID;)V
    • GameMessageS2CPacket

      public GameMessageS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrk;<init>(Lpn;)V
      intermediary <init> Lnet/minecraft/class_2635;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lqr;a(Lpn;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lrk;a(Lqu;)V
      intermediary method_11386 Lnet/minecraft/class_2635;method_11386(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getMessage

      public Text getMessage()
      Mappings:
      Namespace Name Mixin selector
      official b Lrk;b()Lpz;
      intermediary method_11388 Lnet/minecraft/class_2635;method_11388()Lnet/minecraft/class_2561;
      named getMessage Lnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;getMessage()Lnet/minecraft/text/Text;
    • getType

      public MessageType getType()
      Mappings:
      Namespace Name Mixin selector
      official c Lrk;c()Lpw;
      intermediary method_11389 Lnet/minecraft/class_2635;method_11389()Lnet/minecraft/class_2556;
      named getType Lnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;getType()Lnet/minecraft/network/MessageType;
    • getSender

      public UUID getSender()
      Returns the UUID of the entity that sends the message or Util.NIL_UUID if the message is not sent by an entity.
      Returns:
      the UUID of the entity that sends the message or Util.NIL_UUID if the message is not sent by an entity
      Mappings:
      Namespace Name Mixin selector
      official d Lrk;d()Ljava/util/UUID;
      intermediary method_29175 Lnet/minecraft/class_2635;method_29175()Ljava/util/UUID;
      named getSender Lnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;getSender()Ljava/util/UUID;
    • isWritingErrorSkippable

      public boolean isWritingErrorSkippable()
      Returns whether a throwable in writing of this packet allows the connection to simply skip the packet's sending than disconnecting.
      Specified by:
      isWritingErrorSkippable in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lqr;a()Z
      intermediary method_11051 Lnet/minecraft/class_2596;method_11051()Z
      named isWritingErrorSkippable Lnet/minecraft/network/Packet;isWritingErrorSkippable()Z