Class GameMessageS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.GameMessageS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
A packet used to send a game message to the client.
- See Also:
- Mappings:
Namespace Name official rvintermediary net/minecraft/class_2635named net/minecraft/network/packet/s2c/play/GameMessageS2CPacket
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) Returns the UUID of the entity that sends the message orUtil.NIL_UUIDif the message is not sent by an entity.getType()booleanReturns whether a throwable in writing of this packet allows the connection to simply skip the packet's sending than disconnecting.voidwrite(PacketByteBuf buf)
-
Field Details
-
message
- Mappings:
Namespace Name Mixin selector official aLrv;a:Lqk;intermediary field_12112Lnet/minecraft/class_2635;field_12112:Lnet/minecraft/class_2561;named messageLnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;message:Lnet/minecraft/text/Text;
-
type
- Mappings:
Namespace Name Mixin selector official bLrv;b:Lqh;intermediary field_12113Lnet/minecraft/class_2635;field_12113:Lnet/minecraft/class_2556;named typeLnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;type:Lnet/minecraft/network/MessageType;
-
sender
- Mappings:
Namespace Name Mixin selector official cLrv;c:Ljava/util/UUID;intermediary field_25133Lnet/minecraft/class_2635;field_25133:Ljava/util/UUID;named senderLnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;sender:Ljava/util/UUID;
-
-
Constructor Details
-
GameMessageS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>Lrv;<init>(Lqk;Lqh;Ljava/util/UUID;)Vintermediary <init>Lnet/minecraft/class_2635;<init>(Lnet/minecraft/class_2561;Lnet/minecraft/class_2556;Ljava/util/UUID;)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;<init>(Lnet/minecraft/text/Text;Lnet/minecraft/network/MessageType;Ljava/util/UUID;)V
-
GameMessageS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>Lrv;<init>(Lpy;)Vintermediary <init>Lnet/minecraft/class_2635;<init>(Lnet/minecraft/class_2540;)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLrc;a(Lpy;)Vintermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLrv;a(Lrf;)Vintermediary method_11386Lnet/minecraft/class_2635;method_11386(Lnet/minecraft/class_2602;)Vnamed applyLnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
getMessage
- Mappings:
Namespace Name Mixin selector official bLrv;b()Lqk;intermediary method_11388Lnet/minecraft/class_2635;method_11388()Lnet/minecraft/class_2561;named getMessageLnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;getMessage()Lnet/minecraft/text/Text;
-
getType
- Mappings:
Namespace Name Mixin selector official cLrv;c()Lqh;intermediary method_11389Lnet/minecraft/class_2635;method_11389()Lnet/minecraft/class_2556;named getTypeLnet/minecraft/network/packet/s2c/play/GameMessageS2CPacket;getType()Lnet/minecraft/network/MessageType;
-
getSender
Returns the UUID of the entity that sends the message orUtil.NIL_UUIDif the message is not sent by an entity.- Returns:
- the UUID of the
entity that sends the message or
Util.NIL_UUIDif the message is not sent by an entity - Mappings:
Namespace Name Mixin selector official dLrv;d()Ljava/util/UUID;intermediary method_29175Lnet/minecraft/class_2635;method_29175()Ljava/util/UUID;named getSenderLnet/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:
isWritingErrorSkippablein interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLrc;a()Zintermediary method_11051Lnet/minecraft/class_2596;method_11051()Znamed isWritingErrorSkippableLnet/minecraft/network/Packet;isWritingErrorSkippable()Z
-