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
use minecraft_net_proc::Packet;
use rand::random;
Packet!(Ping, 0x05, {
    id: Int,
});
impl Ping {
    pub fn random() -> Self {
        Self{id: random()}
    }
}