Skip to main content

Module java_modern

Module java_modern 

Source
Expand description

Java Edition modern ping protocol (Minecraft 1.7+ / wire protocol 47+).

Implements the Server List Ping handshake over TCP:

Client → Server: Handshake packet (0x00)
  - Protocol version: 47
  - Server address (hostname string)
  - Server port
  - Next state: 1 (Status)

Client → Server: Status Request (0x00, no body)

Server → Client: Status Response (0x00)
  - JSON payload with version, players, description, favicon

Connection is established directly (TCP), or tunnelled through a SOCKS5 or HTTP CONNECT proxy when one is configured.

§Unit struct design

JavaModernProtocol is a zero-size unit struct — Copy, Clone, and Default. No heap allocation occurs when dispatching a ping.

Structs§

JavaModernProtocol
Java Edition modern ping (1.7+).