public class GameMessageS2CPacket extends Object implements Packet<ClientPlayPacketListener>
| Modifier and Type | Field and Description |
|---|---|
private MessageType |
location |
private Text |
message |
private UUID |
senderUuid |
| Constructor and Description |
|---|
GameMessageS2CPacket() |
GameMessageS2CPacket(Text message,
MessageType location,
UUID senderUuid) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
MessageType |
getLocation() |
Text |
getMessage() |
UUID |
getSenderUuid() |
boolean |
isNonChat() |
boolean |
isWritingErrorSkippable()
Returns whether a throwable in writing of this packet allows the
connection to simply skip the packet's sending than disconnecting.
|
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
private Text message
private MessageType location
private UUID senderUuid
public GameMessageS2CPacket()
public GameMessageS2CPacket(Text message, MessageType location, UUID senderUuid)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientPlayPacketListener>IOExceptionpublic void apply(ClientPlayPacketListener clientPlayPacketListener)
apply in interface Packet<ClientPlayPacketListener>@Environment(value=CLIENT) public Text getMessage()
public boolean isNonChat()
public MessageType getLocation()
@Environment(value=CLIENT) public UUID getSenderUuid()
public boolean isWritingErrorSkippable()
isWritingErrorSkippable in interface Packet<ClientPlayPacketListener>