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
use minecraft_net_proc::Packet;
use crate::fields::general::TeleportFlags;

Packet!(SynchronizePlayerPosition, 0x42, {
    teleport_id: VarInt,
    x: Double,
    y: Double,
    z: Double,
    velocity_x: Double,
    velocity_y: Double,
    velocity_z: Double,
    yaw: Float,
    pitch: Float,
    flags: TeleportFlags,
});