diff options
| author | mat <github@matdoes.dev> | 2022-05-01 15:19:51 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-01 15:19:51 -0500 |
| commit | 388b0fc0f294f1b7c47853e34cedf2b9a1b4e49d (patch) | |
| tree | 7463acc478252e7f96931132a9a823ae365df606 /azalea-protocol/src/packets/game/clientbound_entity_velocity_packet.rs | |
| parent | 1a68d55eaf8cb2a108bf850776ee81c74ebaaf5a (diff) | |
| download | azalea-drasl-388b0fc0f294f1b7c47853e34cedf2b9a1b4e49d.tar.xz | |
ClientboundUpdateAttributesPacket & ClientboundEntityVelocityPacket
Diffstat (limited to 'azalea-protocol/src/packets/game/clientbound_entity_velocity_packet.rs')
| -rw-r--r-- | azalea-protocol/src/packets/game/clientbound_entity_velocity_packet.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_entity_velocity_packet.rs b/azalea-protocol/src/packets/game/clientbound_entity_velocity_packet.rs new file mode 100644 index 00000000..83b21425 --- /dev/null +++ b/azalea-protocol/src/packets/game/clientbound_entity_velocity_packet.rs @@ -0,0 +1,16 @@ +use async_trait::async_trait; +use azalea_chat::component::Component; +use azalea_core::{resource_location::ResourceLocation, Slot}; +use packet_macros::{GamePacket, McBufReadable, McBufWritable}; +use tokio::io::AsyncRead; + +use crate::mc_buf::{McBufReadable, McBufWritable, Readable, Writable}; + +#[derive(Clone, Debug, GamePacket)] +pub struct ClientboundEntityVelocityPacket { + #[varint] + pub entity_id: u32, + pub x_vel: i16, + pub y_vel: i16, + pub z_vel: i16, +} |
