azalea_protocol/packets/game/
s_use_item.rs

1use azalea_buf::AzBuf;
2use azalea_protocol_macros::ServerboundGamePacket;
3
4use crate::packets::game::s_interact::InteractionHand;
5
6#[derive(Clone, Debug, AzBuf, ServerboundGamePacket)]
7pub struct ServerboundUseItem {
8    pub hand: InteractionHand,
9    #[var]
10    pub sequence: u32,
11    pub yaw: f32,
12    pub pitch: f32,
13}