Module minecraft_server_query::packets
source · [−]Expand description
Raw bytes packets used by the Query protocol
Base packet format
Client to Server Packet Format
Field name | Field type | Notes |
---|---|---|
Magic | u16 | Always 65277 (0xFEFD ) |
Type | PacketType | 9 for handshake, 0 for stat |
Session ID | u32 | |
Payload | Varies | See per-packet documentation |
Server to Client Packet Format
Field name | Field type | Notes |
---|---|---|
Type | PacketType | 9 for handshake, 0 for stat |
Session ID | u32 | |
Payload | Varies | See per-packet documentation |
Structs
Basic status request packet, 11 bytes long
Full status request packet, 15 bytes long
Handshake request packet, 7 bytes long
Enums
Single byte constants representing the type of a packet