Pumpkin/pumpkin-protocol/src/server/play/mod.rs
Snowiiii ae69bbc7f1 Add pumpkin-world
also refactor player
2024-08-04 00:29:20 +02:00

16 lines
321 B
Rust

use crate::{ServerPacket, VarInt};
pub struct SConfirmTeleport {
pub teleport_id: VarInt,
}
impl ServerPacket for SConfirmTeleport {
const PACKET_ID: VarInt = 0x00;
fn read(bytebuf: &mut crate::bytebuf::ByteBuffer) -> Self {
Self {
teleport_id: bytebuf.get_var_int(),
}
}
}