aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/s_use_item.rs
blob: 4dd14e90cf6f2c683c68d7128ba8d4e9e8eb3173 (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(AzBuf, Clone, Debug, PartialEq, ServerboundGamePacket)]
pub struct ServerboundUseItem {
    pub hand: InteractionHand,
    #[var]
    pub seq: u32,
    pub y_rot: f32,
    pub x_rot: f32,
}