Class QueryEntityNbtC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.QueryEntityNbtC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class QueryEntityNbtC2SPacket extends Object implements Packet<ServerPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private intentityIdprivate inttransactionId -
Constructor Summary
Constructors Constructor Description QueryEntityNbtC2SPacket()QueryEntityNbtC2SPacket(int transactionId, int entityId) -
Method Summary
Modifier and Type Method Description voidapply(ServerPlayPacketListener serverPlayPacketListener)intgetEntityId()intgetTransactionId()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
transactionId
private int transactionId -
entityId
private int entityId
-
-
Constructor Details
-
QueryEntityNbtC2SPacket
public QueryEntityNbtC2SPacket() -
QueryEntityNbtC2SPacket
@Environment(CLIENT) public QueryEntityNbtC2SPacket(int transactionId, int entityId)
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ServerPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ServerPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>
-
getTransactionId
public int getTransactionId() -
getEntityId
public int getEntityId()
-