aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/s_use_item.rs
blob: 3e9e1a2f74c7154c49b134696d1c0c72b68c8287 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use azalea_buf::AzBuf;
use azalea_protocol_macros::ServerboundGamePacket;

use crate::packets::game::s_interact::InteractionHand;

#[derive(Clone, Debug, AzBuf, ServerboundGamePacket)]
pub struct ServerboundUseItem {
    pub hand: InteractionHand,
    #[var]
    pub seq: u32,
    pub y_rot: f32,
    pub x_rot: f32,
}