From 388b0fc0f294f1b7c47853e34cedf2b9a1b4e49d Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 1 May 2022 15:19:51 -0500 Subject: ClientboundUpdateAttributesPacket & ClientboundEntityVelocityPacket --- .../packets/game/clientbound_entity_velocity_packet.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 azalea-protocol/src/packets/game/clientbound_entity_velocity_packet.rs (limited to 'azalea-protocol/src/packets/game/clientbound_entity_velocity_packet.rs') 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, +} -- cgit v1.2.3