0x0A C0APacketAnimation
Player swings their arm (left click or server-side swing). Empty packet with no payload.
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| No payload | Completely empty packet |
MCP References
MCP
NetHandlerPlayServer.processAnimation()Handler Interface
HND
INetHandlerPlayServerNotes
When the server receives this, it broadcasts S0BPacketAnimation to nearby players. The empty packet just notifies the server of the swing. Client-side swings (swingItem()) are purely local and don't send this packet.
implementation Implementation Cases
NoSwing
(Gugustus)
Cancel or fake swing animation. NoSwing cancels the arm swing packet.
if (event.getPacket() instanceof C0APacketAnimation) event.setCancelled(true);Animation
(Gugustus)
Cancel or fake swing animation. NoSwing cancels the arm swing packet.
if (event.getPacket() instanceof C0APacketAnimation) event.setCancelled(true);