aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/clientbound_add_entity_packet.rs
blob: 55fbd2e17ae47d319b93254b97bc7880256dc048 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use packet_macros::GamePacket;
use uuid::Uuid;

#[derive(Clone, Debug, GamePacket)]
pub struct ClientboundAddEntityPacket {
    #[var]
    pub id: i32,
    pub uuid: Uuid,
    // TODO: have an entity type struct
    #[var]
    pub entity_type: i32,
    pub x: f64,
    pub y: f64,
    pub z: f64,
    pub x_rot: i8,
    pub y_rot: i8,
    // pub y_head_rot: i8,
    pub data: i32,
    pub x_vel: u16,
    pub y_vel: u16,
    pub z_vel: u16,
}