diff options
| author | mat <github@matdoes.dev> | 2022-01-03 13:36:02 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-01-03 13:36:02 -0600 |
| commit | bd87cbb4434ba8bdf16ad93c5353ccefc0497d13 (patch) | |
| tree | a13e44c2648db79cad42606f6e54cca123e7061d /azalea-protocol/src/packets | |
| parent | 96eba2b39a596dd19c29a93aaa3b5bb9b700ba62 (diff) | |
| download | azalea-drasl-bd87cbb4434ba8bdf16ad93c5353ccefc0497d13.tar.xz | |
create all empty brigadier modules
Diffstat (limited to 'azalea-protocol/src/packets')
| -rw-r--r-- | azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs b/azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs new file mode 100644 index 00000000..1bcf0dd4 --- /dev/null +++ b/azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs @@ -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()) +// } +// } |
