diff options
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, +} |
