public class TagQueryResponseS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private CompoundTag |
tag |
private int |
transactionId |
Constructor and Description |
---|
TagQueryResponseS2CPacket() |
TagQueryResponseS2CPacket(int transactionId,
CompoundTag tag) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
CompoundTag |
getTag() |
int |
getTransactionId() |
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 int transactionId
@Nullable private CompoundTag tag
public TagQueryResponseS2CPacket()
public TagQueryResponseS2CPacket(int transactionId, @Nullable CompoundTag tag)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public int getTransactionId()
@Environment(value=CLIENT) @Nullable public CompoundTag getTag()
public boolean isWritingErrorSkippable()
isWritingErrorSkippable
in interface Packet<ClientPlayPacketListener>