net.minecraft.network.packet.c2s.play

public record PlayerInteractItemC2SPacket

implements Packet<ServerPlayPacketListener>

net.minecraft.network.protocol.game.ServerboundUseItemPacket
net.minecraft.class_2886
net.minecraft.network.packet.c2s.play.PlayerInteractItemC2SPacket

Field summary

Modifier and TypeField
private final Hand
hand
comp_1_1629
hand
private final int
sequence
comp_1_1630
sequence
private final float
yRot
comp_1_1632
yaw
private final float
xRot
comp_1_1631
pitch
public static final PacketCodec<PacketByteBuf, PlayerInteractItemC2SPacket>
STREAM_CODEC
field_48226
CODEC

Constructor summary

ModifierConstructor
public (Hand hand, int sequence, float yaw, float pitch)

Method summary

Modifier and TypeMethod
public PacketType<PlayerInteractItemC2SPacket>
type()
method_65080()
getPacketType()
public void
handle(ServerGamePacketListener listener)
method_12550(class_2792 arg0)
apply(ServerPlayPacketListener arg0)
public Hand
hand()
comp_1_1629()
hand()
public int
sequence()
comp_1_1630()
sequence()
public float
yRot()
comp_1_1632()
yaw()
public float
xRot()
comp_1_1631()
pitch()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)