aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/status/serverbound_status_request_packet.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/status/serverbound_status_request_packet.rs')
-rw-r--r--azalea-protocol/src/packets/status/serverbound_status_request_packet.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/status/serverbound_status_request_packet.rs b/azalea-protocol/src/packets/status/serverbound_status_request_packet.rs
new file mode 100644
index 00000000..6a58da1f
--- /dev/null
+++ b/azalea-protocol/src/packets/status/serverbound_status_request_packet.rs
@@ -0,0 +1,23 @@
+use std::hash::Hash;
+use tokio::io::BufReader;
+
+use super::StatusPacket;
+
+#[derive(Hash, Clone, Debug)]
+pub struct ServerboundStatusRequestPacket {}
+
+impl ServerboundStatusRequestPacket {
+ pub fn get(self) -> StatusPacket {
+ StatusPacket::ServerboundStatusRequestPacket(self)
+ }
+
+ pub fn write(&self, _buf: &mut Vec<u8>) {
+ panic!("ServerboundStatusRequestPacket::write not implemented")
+ }
+
+ pub async fn read<T: tokio::io::AsyncRead + std::marker::Unpin + std::marker::Send>(
+ _buf: &mut BufReader<T>,
+ ) -> Result<StatusPacket, String> {
+ Err("ServerboundStatusRequestPacket::read not implemented".to_string())
+ }
+}