Pumpkin/pumpkin-protocol/src/client/play/keep_alive.rs
2025-02-23 13:35:22 +01:00

16 lines
336 B
Rust

use pumpkin_data::packet::clientbound::PLAY_KEEP_ALIVE;
use pumpkin_macros::packet;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
#[packet(PLAY_KEEP_ALIVE)]
pub struct CKeepAlive {
keep_alive_id: i64,
}
impl CKeepAlive {
pub fn new(keep_alive_id: i64) -> Self {
Self { keep_alive_id }
}
}