net.minecraft.network.packet.c2s.play

public record PlayerInteractEntityC2SPacket

implements Packet<ServerPlayPacketListener>

net.minecraft.network.protocol.game.ServerboundInteractPacket
net.minecraft.class_2824
net.minecraft.network.packet.c2s.play.PlayerInteractEntityC2SPacket

Field summary

Modifier and TypeField
private final int
entityId
comp_1_92
entityId
private final Hand
hand
comp_1_93
hand
private final Vec3d
location
comp_1_94
location
private final boolean
usingSecondaryAction
comp_1_95
playerSneaking
public static final PacketCodec<io.netty.buffer.ByteBuf, PlayerInteractEntityC2SPacket>
STREAM_CODEC
field_48195
CODEC

Constructor summary

ModifierConstructor
public (int entityId, Hand hand, Vec3d location, boolean playerSneaking)

Method summary

Modifier and TypeMethod
public PacketType<PlayerInteractEntityC2SPacket>
type()
method_65080()
getPacketType()
public void
handle(ServerGamePacketListener listener)
method_12251(class_2792 arg0)
apply(ServerPlayPacketListener arg0)
public int
entityId()
comp_1_92()
entityId()
public Hand
hand()
comp_1_93()
hand()
public Vec3d
location()
comp_1_94()
location()
public boolean
usingSecondaryAction()
comp_1_95()
playerSneaking()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)