mclib 0.0.1

Utils and helpers for Minecraft protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::packets::base::MCPacket;
use crate::types::base::MCType;
use crate::types::boolean::MCBoolean;
use crate::types::double::MCDouble;
use crate::types::varint::MCVarInt;
use mclib_macros::MCPacket;

#[derive(MCPacket, Debug, Clone)]
#[packet(packet_id = 0x16)]
pub struct SetPlayerPosition {
    pub x: MCDouble,
    pub feet_y: MCDouble,
    pub z: MCDouble,
    pub on_ground: MCBoolean,
}