Method | Description | |
---|---|---|
Client ( |
Initialize a new Minecraft client.
|
|
Connect ( ) : bool |
Attempt to connect to the server.
|
|
Disconnect ( ) : bool |
Disconnect from current server.
|
|
Exit ( ) : void |
Exit client.
|
|
GetItemByID ( short id ) : Item |
Get an item by its ID.
|
|
GetPlayer ( ) : Player |
Get the player associated with this Client.
|
|
GetServer ( ) : Server |
Get the server this client is currently connected to.
|
|
SendChatMessage ( string message ) : void |
Send a chat message to the server.
|
Method | Description | |
---|---|---|
ChatMessageReceived ( |
||
PacketReceived ( object sender, PacketEventArgs e ) : void |
Handles all packets received.
|
|
ParseLoginRequestSC ( LoginRequestPacketSC packet ) : void |
Parse a LoginRequestPacketSC packet and update data accordingly.
|
|
ReceiveMessage ( string message ) : void |
public Client ( |
||
server | The server to connect to. | |
player | The player who logged in with the client. | |
return | System |
public static GetItemByID ( short id ) : Item | ||
id | short | ID of the item. |
return | Item |
public SendChatMessage ( string message ) : void | ||
message | string | Message to send. |
return | void |