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 } } }