Client

Represents a generic game client.

Constructors

this
this(ubyte type, uint protocol, Address address, string username, UUID uuid, string gameName, string gameVersion)
Undocumented in source.

Members

Functions

directSend
void directSend(ubyte[] payload)
Undocumented in source.
disconnect
void disconnect(string message, bool translation, string[] params)
Undocumented in source. Be warned that the author may not have intended to support it.
disconnect
void disconnect(string message, string[] params)
Undocumented in source. Be warned that the author may not have intended to support it.
disconnectImpl
void disconnectImpl(string message, bool translation, string[] params)
Undocumented in source.
send
void send(ubyte[] packet)
Undocumented in source.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

VERSION_EDU
enum VERSION_EDU;
Undocumented in source.
VERSION_JAVA
enum VERSION_JAVA;
Undocumented in source.
VERSION_MINECRAFT
enum VERSION_MINECRAFT;
Undocumented in source.

Properties

address
Address address [@property getter]

Gets the client's address. May be either an ipv4 or ipv6, depending on the address where the server is binded to.

username
string username [@property getter]

Gets the client's username.

uuid
UUID uuid [@property getter]

Gets the client's UUID.

Variables

BEDROCK
enum ubyte BEDROCK;
Undocumented in source.
JAVA
enum ubyte JAVA;
Undocumented in source.
game
string game;
Undocumented in source.
gameData
JSONValue gameData;
Undocumented in source.
gameName
string gameName;
Undocumented in source.
gameVersion
string gameVersion;
Undocumented in source.
handler
void delegate(ubyte[]) handler;
Undocumented in source.
id
uint id;
Undocumented in source.
inputMode
InputMode inputMode;
Undocumented in source.
language
string language;
Undocumented in source.
protocol
uint protocol;
Undocumented in source.
serverIp
string serverIp;
Undocumented in source.
serverPort
ushort serverPort;
Undocumented in source.
skinCape
immutable(ubyte)[] skinCape;
Undocumented in source.
skinData
immutable(ubyte)[] skinData;
Undocumented in source.
skinGeometryData
immutable(ubyte)[] skinGeometryData;
Undocumented in source.
skinGeometryName
string skinGeometryName;
Undocumented in source.
skinName
string skinName;
Undocumented in source.
type
ubyte type;
Undocumented in source.

Meta