Pumpkin/pumpkin-protocol/src/java/client/play/disconnect.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

18 lines
381 B
Rust

use pumpkin_data::packet::clientbound::PLAY_DISCONNECT;
use pumpkin_util::text::TextComponent;
use pumpkin_macros::packet;
use serde::Serialize;
#[derive(Serialize)]
#[packet(PLAY_DISCONNECT)]
pub struct CPlayDisconnect<'a> {
pub reason: &'a TextComponent,
}
impl<'a> CPlayDisconnect<'a> {
pub fn new(reason: &'a TextComponent) -> Self {
Self { reason }
}
}