Files
Pumpkin/pumpkin-protocol/src/java/client/config/cookie_request.rs
Alexander Medvedev e0c91b3edc Initial Bedrock support
You can't join the World, But the base is ready
2025-06-29 00:33:44 +02:00

17 lines
438 B
Rust

use pumpkin_data::packet::clientbound::CONFIG_COOKIE_REQUEST;
use pumpkin_macros::packet;
use pumpkin_util::resource_location::ResourceLocation;
#[derive(serde::Serialize)]
#[packet(CONFIG_COOKIE_REQUEST)]
/// Requests a cookie that was previously stored.
pub struct CCookieRequest<'a> {
pub key: &'a ResourceLocation,
}
impl<'a> CCookieRequest<'a> {
pub fn new(key: &'a ResourceLocation) -> Self {
Self { key }
}
}