azalea_protocol/packets/game/
serverbound_use_item_packet.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use azalea_buf::McBuf;
use azalea_protocol_macros::ServerboundGamePacket;

use crate::packets::game::serverbound_interact_packet::InteractionHand;

#[derive(Clone, Debug, McBuf, ServerboundGamePacket)]
pub struct ServerboundUseItemPacket {
    pub hand: InteractionHand,
    #[var]
    pub sequence: u32,
    pub yaw: f32,
    pub pitch: f32,
}