Skip to main content

steel_protocol/packets/game/
s_use_item.rs

1use steel_macros::{ReadFrom, ServerPacket};
2use steel_utils::types::InteractionHand;
3
4/// Serverbound packet sent when a player uses an item (right-click in air).
5#[derive(ReadFrom, ServerPacket, Clone, Debug)]
6pub struct SUseItem {
7    pub hand: InteractionHand,
8
9    #[read(as = VarInt)]
10    pub sequence: i32,
11
12    pub y_rot: f32,
13
14    pub x_rot: f32,
15}