aboutsummaryrefslogtreecommitdiff
path: root/minecraft-protocol/src/packets/clientbound_status_response_packet.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-12-07 22:12:16 +0000
committermat <github@matdoes.dev>2021-12-07 22:12:16 +0000
commit4a44c58444c901d939a8594669c819ab2bfbac13 (patch)
tree5085824e8af8bb9209f7defa178f1010fc29e436 /minecraft-protocol/src/packets/clientbound_status_response_packet.rs
parent9c14b3f32346f071ad12faf86105f5fd3ce03959 (diff)
downloadazalea-drasl-4a44c58444c901d939a8594669c819ab2bfbac13.tar.xz
keep doing packet stuff
Diffstat (limited to 'minecraft-protocol/src/packets/clientbound_status_response_packet.rs')
-rw-r--r--minecraft-protocol/src/packets/clientbound_status_response_packet.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/minecraft-protocol/src/packets/clientbound_status_response_packet.rs b/minecraft-protocol/src/packets/clientbound_status_response_packet.rs
new file mode 100644
index 00000000..8baa2a4d
--- /dev/null
+++ b/minecraft-protocol/src/packets/clientbound_status_response_packet.rs
@@ -0,0 +1,21 @@
+use std::hash::Hash;
+
+use super::Packet;
+
+#[derive(Hash)]
+pub struct ServerboundStatusRequestPacket {
+ status: ServerStatus,
+}
+
+// implement "Packet" for "ClientIntentionPacket"
+impl Packet for ServerboundStatusRequestPacket {
+ fn get_id(&self) -> u32 {
+ 0x00
+ }
+
+ // implement "from_reader" for "ClientIntentionPacket"
+ fn write(&self, _buf: &mut Vec<u8>) {}
+ fn parse<T: tokio::io::AsyncRead + std::marker::Unpin>(&self, buf: T) -> () {
+ // this.status = GsonHelper.fromJson(GSON, friendlyByteBuf.readUtf(32767), ServerStatus.class);
+ }
+}