chunkedge_protocol/packets/play/teleport_entity_s2c.rs
1use chunkedge_binary::{Decode, Encode, VarInt};
2use chunkedge_math::DVec3;
3
4use crate::packets::play::player_position_s2c::TeleportRelativeFlags;
5use crate::Packet;
6
7#[derive(Copy, Clone, Debug, Encode, Decode, Packet)]
8pub struct TeleportEntityS2c {
9 pub entity_id: VarInt,
10 pub position: DVec3,
11 pub velocity: DVec3,
12 pub yaw: f32,
13 pub pitch: f32,
14 pub flags: TeleportRelativeFlags,
15 pub on_ground: bool,
16}