Class TagQueryResponseS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.TagQueryResponseS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class TagQueryResponseS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private CompoundTagtagprivate inttransactionId -
Constructor Summary
Constructors Constructor Description TagQueryResponseS2CPacket()TagQueryResponseS2CPacket(int transactionId, CompoundTag tag) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)CompoundTaggetTag()intgetTransactionId()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
-
transactionId
private int transactionId -
tag
-
-
Constructor Details
-
TagQueryResponseS2CPacket
public TagQueryResponseS2CPacket() -
TagQueryResponseS2CPacket
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
getTransactionId
@Environment(CLIENT) public int getTransactionId() -
getTag
-
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>
-