mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
21 lines
434 B
Rust
21 lines
434 B
Rust
use packet_macros::{GamePacket, McBuf};
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Clone, Debug, McBuf, GamePacket)]
|
|
pub struct ClientboundAddMobPacket {
|
|
#[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 x_vel: u16,
|
|
pub y_vel: u16,
|
|
pub z_vel: u16,
|
|
}
|