azalea_protocol/packets/game/
c_teleport_entity.rs

1use azalea_buf::AzBuf;
2use azalea_protocol_macros::ClientboundGamePacket;
3use azalea_world::MinecraftEntityId;
4
5use crate::common::movements::{PositionMoveRotation, RelativeMovements};
6
7#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
8pub struct ClientboundTeleportEntity {
9    #[var]
10    pub id: MinecraftEntityId,
11    pub change: PositionMoveRotation,
12    pub relatives: RelativeMovements,
13    pub on_ground: bool,
14}