Class ServerboundEntityTagQueryPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundEntityTagQueryPacket
- All Implemented Interfaces:
Packet<ServerGamePacketListener>
public class ServerboundEntityTagQueryPacket
extends Object
implements Packet<ServerGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intstatic final StreamCodec<FriendlyByteBuf, ServerboundEntityTagQueryPacket> private final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionServerboundEntityTagQueryPacket(int transactionId, int entityId) private -
Method Summary
Modifier and TypeMethodDescriptionintintvoidhandle(ServerGamePacketListener handler) Passes this Packet on to the PacketListener for processing.type()private voidwrite(FriendlyByteBuf buffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
transactionId
private final int transactionId -
entityId
private final int entityId
-
-
Constructor Details
-
ServerboundEntityTagQueryPacket
public ServerboundEntityTagQueryPacket(int transactionId, int entityId) -
ServerboundEntityTagQueryPacket
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ServerGamePacketListener>
-
handle
Passes this Packet on to the PacketListener for processing.- Specified by:
handlein interfacePacket<ServerGamePacketListener>
-
getTransactionId
public int getTransactionId() -
getEntityId
public int getEntityId()
-