azalea_protocol/packets/game/
c_player_position.rs

1use azalea_buf::AzBuf;
2use azalea_protocol_macros::ClientboundGamePacket;
3
4use crate::common::movements::{PositionMoveRotation, RelativeMovements};
5
6#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
7pub struct ClientboundPlayerPosition {
8    /// The teleport ID.
9    #[var]
10    pub id: u32,
11    pub change: PositionMoveRotation,
12    pub relative: RelativeMovements,
13}