mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-31 20:32:34 +00:00
18 lines
372 B
Rust
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 }
|
|
}
|
|
}
|