minecraft-net 0.2.0

A library allowing easier communication via the minecraft protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::fields::types::{Double, VarInt};
use minecraft_net_proc::Packet_old;

#[derive(Debug, Packet_old)]
#[id = 0x41]
pub struct LookAt {
    pub feet_eyes: VarInt,
    pub target_x: Double,
    pub target_y: Double,
    pub target_z: Double,
    pub is_entity: bool,
    #[when = "is_entity"]
    pub entity_id: Option<VarInt>,
    #[when = "is_entity"]
    pub entity_feet_eyes: Option<VarInt>
}