Skip to main content

steel_protocol/packets/game/
c_rotate_head.rs

1//! Packet for updating an entity's head rotation.
2
3use steel_macros::{ClientPacket, WriteTo};
4use steel_registry::packets::play::C_ROTATE_HEAD;
5
6/// Updates an entity's head yaw rotation.
7#[derive(ClientPacket, WriteTo, Clone, Debug)]
8#[packet_id(Play = C_ROTATE_HEAD)]
9pub struct CRotateHead {
10    #[write(as = VarInt)]
11    pub entity_id: i32,
12    /// Head yaw as angle byte
13    pub head_y_rot: i8,
14}