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

use crate::common::movements::{PositionMoveRotation, RelativeMovements};

#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
pub struct ClientboundPlayerPosition {
    /// The teleport ID.
    #[var]
    pub id: u32,
    pub change: PositionMoveRotation,
    pub relative: RelativeMovements,
}