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

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

#[derive(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)]
pub struct ClientboundTeleportEntity {
    #[var]
    pub id: MinecraftEntityId,
    pub change: PositionMoveRotation,
    pub relative: RelativeMovements,
    pub on_ground: bool,
}