Handshake#

Clientbound#

There are no client bound packets for the handshake state. After Handshake is sent, the state immediately switches to State.LOGIN.

Serverbound#

class minecraft.packets.handshake_serverbound.Handshake(protocol_version: Varint, server_address: String, server_port: UnsignedShort, next_state: NextState)#

Handshake packet sent by the client to the server to initiate a connection.

Packet ID: 0x00

State: State.HANDSHAKE

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