Files
Pumpkin/pumpkin-protocol/src/java/client/config/transfer.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
372 B
Rust

use crate::VarInt;
use pumpkin_data::packet::clientbound::CONFIG_TRANSFER;
use pumpkin_macros::packet;
use serde::Serialize;
#[derive(Serialize)]
#[packet(CONFIG_TRANSFER)]
pub struct CTransfer<'a> {
pub host: &'a str,
pub port: &'a VarInt,
}
impl<'a> CTransfer<'a> {
pub fn new(host: &'a str, port: &'a VarInt) -> Self {
Self { host, port }
}
}