azalea_protocol/packets/game/c_move_entity_pos_rot.rs
1use azalea_buf::AzBuf;
2use azalea_core::delta::PositionDelta8;
3use azalea_protocol_macros::ClientboundGamePacket;
4use azalea_world::MinecraftEntityId;
5
6/// This packet is sent by the server when an entity moves less then 8 blocks.
7#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
8pub struct ClientboundMoveEntityPosRot {
9 #[var]
10 pub entity_id: MinecraftEntityId,
11 pub delta: PositionDelta8,
12 pub y_rot: i8,
13 pub x_rot: i8,
14 pub on_ground: bool,
15}