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

use crate::common::movements::PositionMoveRotation;

#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundGamePacket)]
pub struct ClientboundEntityPositionSync {
    #[var]
    pub id: MinecraftEntityId,
    pub values: PositionMoveRotation,
    pub on_ground: bool,
}