mclib 0.0.1

Utils and helpers for Minecraft protocol
Documentation
1
2
3
4
5
6
7
8
use std::fmt::Debug;
use std::io::Read;

pub trait MCPacket: Debug + Clone {
    fn packet_id(&self) -> i32;
    fn pack(&self) -> Vec<u8>;
    fn unpack(src: &mut dyn Read) -> Self;
}