aboutsummaryrefslogtreecommitdiff
path: root/minecraft-protocol/src/packets/clientbound_status_response_packet.rs
blob: 8baa2a4df3b69924db41fbe0827670f99231f78f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
    }
}