Pumpkin/pumpkin-protocol/src/client/play/c_head_rot.rs
2024-10-27 14:18:18 +01:00

21 lines
354 B
Rust

use pumpkin_macros::client_packet;
use serde::Serialize;
use crate::VarInt;
#[derive(Serialize)]
#[client_packet("play:rotate_head")]
pub struct CHeadRot {
entity_id: VarInt,
head_yaw: u8,
}
impl CHeadRot {
pub fn new(entity_id: VarInt, head_yaw: u8) -> Self {
Self {
entity_id,
head_yaw,
}
}
}