diff options
| author | mat <github@matdoes.dev> | 2022-04-30 22:18:33 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-04-30 22:18:33 -0500 |
| commit | 3c3deb625db1b466b9cb3b123af73333b27b14cc (patch) | |
| tree | b33e43d28f0774b633a8a6bba936c54fe96c90f3 /azalea-protocol/src/packets/game/clientbound_add_mob_packet.rs | |
| parent | 51201ffe657a3d20843c13be57ced740270cd384 (diff) | |
| download | azalea-drasl-3c3deb625db1b466b9cb3b123af73333b27b14cc.tar.xz | |
add entity -> add mob
Diffstat (limited to 'azalea-protocol/src/packets/game/clientbound_add_mob_packet.rs')
| -rw-r--r-- | azalea-protocol/src/packets/game/clientbound_add_mob_packet.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_add_mob_packet.rs b/azalea-protocol/src/packets/game/clientbound_add_mob_packet.rs new file mode 100644 index 00000000..144e74c8 --- /dev/null +++ b/azalea-protocol/src/packets/game/clientbound_add_mob_packet.rs @@ -0,0 +1,21 @@ +use packet_macros::GamePacket; +use uuid::Uuid; + +#[derive(Clone, Debug, GamePacket)] +pub struct ClientboundAddMobPacket { + #[varint] + pub id: i32, + pub uuid: Uuid, + // TODO: have an entity type struct + #[varint] + 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, +} |
