Pumpkin/pumpkin-protocol/src/client/config/c_cookie_request.rs
2024-08-05 12:56:46 +02:00

19 lines
359 B
Rust

use crate::{
bytebuf::{packet_id::Packet, ByteBuffer},
ClientPacket, Identifier, VarInt,
};
pub struct CCookieRequest {
key: Identifier,
}
impl Packet for CCookieRequest {
const PACKET_ID: VarInt = 0x00;
}
impl ClientPacket for CCookieRequest {
fn write(&self, bytebuf: &mut ByteBuffer) {
bytebuf.put_string(&self.key);
}
}