Pumpkin/pumpkin-protocol/src/client/play/c_ping_response.rs
2024-10-27 14:18:18 +01:00

15 lines
259 B
Rust

use pumpkin_macros::client_packet;
use serde::Serialize;
#[derive(Serialize)]
#[client_packet("play:pong_response")]
pub struct CPingResponse {
payload: i64,
}
impl CPingResponse {
pub fn new(payload: i64) -> Self {
Self { payload }
}
}