Pumpkin/pumpkin-protocol/src/client/status/ping_response.rs
Alexander Medvedev 3d789f7450 Some Renames
2025-02-05 23:12:16 +01:00

16 lines
371 B
Rust

use pumpkin_data::packet::clientbound::STATUS_PONG_RESPONSE;
use pumpkin_macros::client_packet;
use serde::Serialize;
#[derive(Serialize)]
#[client_packet(STATUS_PONG_RESPONSE)]
pub struct CPingResponse {
payload: i64, // must respond with the same as in `SPingRequest`
}
impl CPingResponse {
pub fn new(payload: i64) -> Self {
Self { payload }
}
}