class

Client

Inherits Packets < ClientHandler < Packets < Reference < Object

Constants

BUFFER_SIZE = 1024 * 1024
PROTOCOL_VERSION = 47

Constructors

new(username : String, password : String | Nil = nil)
Source

Instance methods

authenticate
Source
close
Source
connect(host : String, port : Int32 = 25565)
Source
disconnect
Source
get_length_header(data : Bytes)
Source
handle(packet : Login::C::EncryptionRequest)

Generate the ClientHandler class

Source
handle(packet : Login::C::LoginDisconnect)

Generate the ClientHandler class

Source
handle(packet : Login::C::LoginSuccess)

Generate the ClientHandler class

Source
handle(packet : Login::C::EnableCompression)

Generate the ClientHandler class

Source
handle(packet : Play::C::KeepAlive)

Generate the ClientHandler class

Source
handle(packet : Play::C::PlayDisconnect)

Generate the ClientHandler class

Source
once
Source
read
Source
receive
Source
write(packet : RawPacket)
Source

Nested types