Class QueryBlockNbtC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.QueryBlockNbtC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class QueryBlockNbtC2SPacket extends Object implements Packet<ServerPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private BlockPos
pos
private int
transactionId
-
Constructor Summary
Constructors Constructor Description QueryBlockNbtC2SPacket()
QueryBlockNbtC2SPacket(int transactionId, BlockPos pos)
-
Method Summary
Modifier and Type Method Description void
apply(ServerPlayPacketListener serverPlayPacketListener)
BlockPos
getPos()
int
getTransactionId()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
transactionId
private int transactionId -
pos
-
-
Constructor Details
-
QueryBlockNbtC2SPacket
public QueryBlockNbtC2SPacket() -
QueryBlockNbtC2SPacket
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ServerPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ServerPlayPacketListener>
- Throws:
IOException
-
apply
- Specified by:
apply
in interfacePacket<ServerPlayPacketListener>
-
getTransactionId
public int getTransactionId() -
getPos
-