basin2-protocol 578.1.0

Basin2 subpackage for MC protocol.
use crate::packet::*;
use basin2_lib::Result;
use bytes::BytesMut;
use std::io::Error as IoError;
use std::io::ErrorKind;

hierarchy! {
    child<Handshake> enum HandshakeClientbound {
    }
}

impl PacketContainer for HandshakeClientbound {
    fn encode(self, _buf: &mut BytesMut) {
        match self {}
    }

    fn decode(id: i32, _buf: &mut BytesMut) -> Result<HandshakeClientbound> {
        match id {
            _ => Err(Box::new(IoError::from(ErrorKind::InvalidData))),
        }
    }
}