blob: ddca9b1f9da817a9f432e07467a49cae9b42eeb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
use std::hash::Hash;
use super::Packet;
#[derive(Hash)]
pub struct ServerboundStatusRequestPacket {
// status: ServerStatus,
status: String,
}
// 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) -> () {
mc_buf::read_utf;
// this.status = GsonHelper.fromJson(GSON, friendlyByteBuf.readUtf(32767), ServerStatus.class);
}
}
|