net.minecraft.network.packet.s2c.play

public record SwingAnimationS2CPacket

implements Packet<ClientPlayPacketListener>

net.minecraft.network.protocol.game.ClientboundSwingAnimationPacket
net.minecraft.class_1_1444
net.minecraft.network.packet.s2c.play.SwingAnimationS2CPacket

Field summary

Modifier and TypeField
private final int
entityId
comp_1_1567
entityId
private final Hand
hand
comp_1_1568
hand
private final SwingAnimationComponent
animation
comp_1_1566
animation
public static final PacketCodec<io.netty.buffer.ByteBuf, SwingAnimationS2CPacket>
STREAM_CODEC
field_1_9825
CODEC

Constructor summary

ModifierConstructor
public (Entity entity, Hand hand, SwingAnimationComponent animation)
public (int entityId, Hand hand, SwingAnimationComponent animation)

Method summary

Modifier and TypeMethod
public PacketType<SwingAnimationS2CPacket>
type()
method_65080()
getPacketType()
public void
handle(ClientGamePacketListener listener)
method_1_9550(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public int
entityId()
comp_1_1567()
entityId()
public Hand
hand()
comp_1_1568()
hand()
public SwingAnimationComponent
animation()
comp_1_1566()
animation()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)