steel_protocol/packets/game/c_hurt_animation.rs
1use steel_macros::{ClientPacket, WriteTo};
2use steel_registry::packets::play::C_HURT_ANIMATION;
3
4#[derive(ClientPacket, WriteTo, Clone, Debug)]
5#[packet_id(Play = C_HURT_ANIMATION)]
6pub struct CHurtAnimation {
7 /// The ID of the entity taking damage
8 #[write(as = VarInt)]
9 pub entity_id: i32,
10 /// The direction the damage is coming from in relation to the entity
11 pub yaw: f32,
12}