net.minecraft.network.protocol.game

public class ServerboundUseItemPacket

implements Packet<ServerGamePacketListener>

aif
net.minecraft.network.protocol.game.ServerboundUseItemPacket
net.minecraft.class_2886
net.minecraft.network.packet.c2s.play.PlayerInteractItemC2SPacket
net.minecraft.src.C_5199_
net.minecraft.network.protocol.game.PacketPlayInBlockPlace

Field summary

Modifier and TypeField
public static final StreamCodec<FriendlyByteBuf, ServerboundUseItemPacket>
a
STREAM_CODEC
field_48226
CODEC
f_316479_
private final InteractionHand
b
hand
field_13136
hand
f_134707_
private final int
c
sequence
field_38050
sequence
f_238009_
private final float
d
yRot
field_51930
yaw
f_336849_
private final float
e
xRot
field_51931
pitch
f_337444_

Constructor summary

ModifierConstructor
public (InteractionHand hand, int sequence, float yaw, float pitch)
private (FriendlyByteBuf buf)

Method summary

Modifier and TypeMethod
private void
a(vw arg0)
write(FriendlyByteBuf arg0)
method_56006(class_2540 arg0)
write(PacketByteBuf buf)
m_134718_(C_4983_ arg0)
public PacketType<ServerboundUseItemPacket>
a()
type()
method_55846()
getPacketId()
m_5779_()
public void
a(agi arg0)
handle(ServerGamePacketListener arg0)
method_12550(class_2792 arg0)
apply(ServerPlayPacketListener arg0)
m_5797_(C_5145_ arg0)
public InteractionHand
b()
getHand()
method_12551()
getHand()
m_134717_()
public int
e()
getSequence()
method_42081()
getSequence()
m_238013_()
public float
f()
getYRot()
method_60586()
getYaw()
m_339080_()
public float
g()
getXRot()
method_60587()
getPitch()
m_339228_()