Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HandshakeID is the ID of the Handshake packet. HandshakeID = 0x00 // LegacyServerListPingID is the ID of the LegacyServerListPing packet. LegacyServerListPingID = 0xFE )
View Source
const ( // StateHandshaking is the initial state of a minecraft connection. StateHandshaking = iota )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Frame ¶
type Frame struct {
// contains filtered or unexported fields
}
Frame represents a single frame in the communication.
type Handshake ¶
Handshake is the first packet in the minecraft protocol send by the client.
func ReadHandshake ¶
ReadHandshake reads a Handshake packet from the given data.
type LegacyServerListPing ¶
LegacyServerListPing is send by legacy minecraft client.
type Packet ¶
type Packet struct { // Length is the length of the packet. Length int // PacketID is the ID of the packet. PacketID int // Data is either a byte slice of raw content or a parsed message Data interface{} }
Packet represents a single packet in the minecraft communication.
func ReadPacket ¶
ReadPacket reads a single packet from the given reader.
Click to show internal directories.
Click to hide internal directories.