Pumpkin/pumpkin-protocol/src/java/server/status/status_request.rs
2026-07-24 12:31:57 +02:00

21 lines
657 B
Rust

use crate::{ServerPacket, ser::ReadingError};
use pumpkin_data::packet::serverbound::STATUS_STATUS_REQUEST;
use pumpkin_macros::java_packet;
use pumpkin_util::version::JavaMinecraftVersion;
/// Sent by the client to request the server's current status information.
///
/// This is the first packet sent during the "Status" state.
/// The server should respond with `CStatusResponse`.
#[java_packet(STATUS_STATUS_REQUEST)]
pub struct SStatusRequest;
impl<'a> ServerPacket<'a> for SStatusRequest {
fn read(
_bytebuf: &mut &'a [u8],
_protocol_version: &JavaMinecraftVersion,
) -> Result<Self, ReadingError> {
Ok(Self)
}
}