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>
-
Field Summary
Fields Modifier and Type Field Description private MessageTypelocationprivate Textmessageprivate UUIDsenderUuid -
Constructor Summary
Constructors Constructor Description GameMessageS2CPacket()GameMessageS2CPacket(Text message, MessageType location, UUID senderUuid) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)MessageTypegetLocation()TextgetMessage()UUIDgetSenderUuid()booleanisNonChat()booleanisWritingErrorSkippable()Returns whether a throwable in writing of this packet allows the connection to simply skip the packet's sending than disconnecting.voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)
-
Field Details
-
message
-
location
-
senderUuid
-
-
Constructor Details
-
GameMessageS2CPacket
public GameMessageS2CPacket() -
GameMessageS2CPacket
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
getMessage
-
isNonChat
public boolean isNonChat() -
getLocation
-
getSenderUuid
-
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>
-