azalea_protocol/packets/game/
c_player_look_at.rs1use azalea_buf::AzBuf;
2use azalea_core::position::Vec3;
3use azalea_protocol_macros::ClientboundGamePacket;
4
5#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
6pub struct ClientboundPlayerLookAt {
7 pub from_anchor: Anchor,
8 pub pos: Vec3,
9 pub entity: Option<AtEntity>,
10}
11
12#[derive(AzBuf, Clone, Copy, Debug)]
13pub enum Anchor {
14 Feet = 0,
15 Eyes = 1,
16}
17
18#[derive(AzBuf, Clone, Debug)]
19pub struct AtEntity {
20 #[var]
21 pub entity: u32,
22 pub to_anchor: Anchor,
23}