aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_player_position.rs
blob: 8ec7402de2db8ba8ff94b44ecc2f1f2ad29d2203 (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(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)]
pub struct ClientboundPlayerPosition {
    /// The teleport ID.
    #[var]
    pub id: u32,
    pub change: PositionMoveRotation,
    pub relative: RelativeMovements,
}