steel_protocol/packets/game/s_swing.rs
1//! Serverbound swing packet - sent when the player swings their arm.
2
3use steel_macros::{ReadFrom, ServerPacket};
4use steel_utils::types::InteractionHand;
5
6/// Sent when the player swings their arm (attacks or interacts).
7#[derive(ReadFrom, ServerPacket, Clone, Debug)]
8pub struct SSwing {
9 /// The hand used for the swing animation.
10 pub hand: InteractionHand,
11}