MCPing::Request
Inherits Reference < Object
The request class is used internally by both the ping and query functions.
It likely does not have anything terribly interesting for external use.
Constants
PROTOCOL_VERSION = 71_u8
Instance methods
createHandshake(host : String, port : UInt32)
Creates a handshake packet.
Requires the server host and port for creating a correct packet.
createPacket(pl : Bytes)
Finalizes a packet to be sent.
It adds the size of the bytes as a uvarint to the beginning then appends the provided bytes.