net.minecraft.network.packet.c2s.play

public class 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
public static final PacketCodec<PacketByteBuf, PlayerInteractItemC2SPacket>
STREAM_CODEC
field_48226
CODEC
private final Hand
hand
field_13136
hand
private final int
sequence
field_38050
sequence
private final float
yRot
field_51930
yaw
private final float
xRot
field_51931
pitch

Constructor summary

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

Method summary

Modifier and TypeMethod
private void
write(FriendlyByteBuf output)
method_56006(class_2540 arg0)
write(PacketByteBuf buf)
public PacketType<PlayerInteractItemC2SPacket>
type()
method_65080()
getPacketType()
public void
handle(ServerGamePacketListener listener)
method_12550(class_2792 arg0)
apply(ServerPlayPacketListener arg0)
public Hand
getHand()
method_12551()
getHand()
public int
getSequence()
method_42081()
getSequence()
public float
getYRot()
method_60586()
getYaw()
public float
getXRot()
method_60587()
getPitch()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)