steel_protocol/packets/game/s_set_held_item.rs
1//! Serverbound packet for changing the held item slot.
2
3use steel_macros::{ReadFrom, ServerPacket};
4
5/// Sent by the client when the player changes their selected hotbar slot.
6#[derive(ServerPacket, ReadFrom, Clone, Debug)]
7pub struct SSetHeldItem {
8 /// The slot index (0-8).
9 pub slot: i16,
10}