Status#

Clientbound#

class minecraft.packets.status_clientbound.StatusResponse(json_response: String)#

Status response packet sent by the server to the client in response to a status request.

Packet ID: 0x00

State: State.STATUS

Bound to: Client

classmethod from_bytes(data: BytesIO)#

Converts a packet’s data into a packet object.

Parameters:

data (io.BytesIO) – The packet’s data.

Returns:

The packet object.

Return type:

Packet

class minecraft.packets.status_clientbound.PingResponse(payload: Varint)#

Ping response packet sent by the server to the client in response to a ping request.

Packet ID: 0x01

State: State.STATUS

Bound to: Client

classmethod from_bytes(data: BytesIO)#

Converts a packet’s data into a packet object.

Parameters:

data (io.BytesIO) – The packet’s data.

Returns:

The packet object.

Return type:

Packet

Serverbound#

class minecraft.packets.status_serverbound.StatusRequest#

Status request packet sent by the client to the server to request the server’s status.

Packet ID: 0x00

State: State.STATUS

Bound to: Server

classmethod from_bytes(data: BytesIO)#

Converts a packet’s data into a packet object.

Parameters:

data (io.BytesIO) – The packet’s data.

Returns:

The packet object.

Return type:

Packet

class minecraft.packets.status_serverbound.PingRequest(payload: Long)#

Ping request packet sent by the client to the server to request the server’s ping.

Packet ID: 0x01

State: State.STATUS

Bound to: Server

classmethod from_bytes(data: BytesIO)#

Converts a packet’s data into a packet object.

Parameters:

data (io.BytesIO) – The packet’s data.

Returns:

The packet object.

Return type:

Packet