Class NbtQueryResponseS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.NbtQueryResponseS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class NbtQueryResponseS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private NbtCompoundnbtprivate inttransactionId -
Constructor Summary
Constructors Constructor Description NbtQueryResponseS2CPacket()NbtQueryResponseS2CPacket(int transactionId, NbtCompound nbt) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)NbtCompoundgetNbt()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 -
nbt
-
-
Constructor Details
-
NbtQueryResponseS2CPacket
public NbtQueryResponseS2CPacket() -
NbtQueryResponseS2CPacket
-
-
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() -
getNbt
-
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>
-