1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00

create all empty brigadier modules

This commit is contained in:
mat 2022-01-03 13:36:02 -06:00
parent 96eba2b39a
commit bd87cbb443
73 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,8 @@
[package]
name = "azalea-brigadier"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

View file

View file

@ -0,0 +1,8 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
let result = 2 + 2;
assert_eq!(result, 4);
}
}

View file

View file

View file

View file

View file

View file

@ -0,0 +1,37 @@
// use std::hash::Hash;
// use crate::mc_buf::Readable;
// use super::LoginPacket;
// #[derive(Hash, Clone, Debug)]
// pub struct ClientboundDeclareCommandsPacket {
// pub root: RootCommandNode<SharedSuggestionProvider>,
// pub public_key: Vec<u8>,
// pub nonce: Vec<u8>,
// }
// impl ClientboundHelloPacket {
// pub fn get(self) -> LoginPacket {
// LoginPacket::ClientboundHelloPacket(self)
// }
// pub fn write(&self, _buf: &mut Vec<u8>) -> Result<(), std::io::Error> {
// panic!("ClientboundHelloPacket::write not implemented")
// }
// pub async fn read<T: tokio::io::AsyncRead + std::marker::Unpin + std::marker::Send>(
// buf: &mut T,
// ) -> Result<LoginPacket, String> {
// let server_id = buf.read_utf_with_len(20).await?;
// let public_key = buf.read_byte_array().await?;
// let nonce = buf.read_byte_array().await?;
// Ok(ClientboundHelloPacket {
// server_id,
// public_key,
// nonce,
// }
// .get())
// }
// }