steel_protocol/packets/game/s_use_item_on.rs
1use steel_macros::{ReadFrom, ServerPacket};
2use steel_registry::items::item::BlockHitResult;
3use steel_utils::types::InteractionHand;
4
5/// Serverbound packet sent when a player uses an item on a block (right-click on block).
6#[derive(ReadFrom, ServerPacket, Clone, Debug)]
7pub struct SUseItemOn {
8 pub hand: InteractionHand,
9
10 pub block_hit: BlockHitResult,
11
12 #[read(as = VarInt)]
13 pub sequence: i32,
14}