NetworkClient
Index
Constructors
constructor
Returns NetworkClient
Methods
disconnect
Disconnects player from the server and sends a packet with given reason.
Parameters
reason: string
Returns void
getDisconnectCause
Returns IOException
getDisconnectPacket
Returns string
getPlayerUid
Returns number
Unique numeric entity ID of the player.
send
Sends given packet to the following client.
Parameters
name: string
name of the packet to send
packetData: object
packet data object
Returns void
sendMessage
Sends a packet to the client with a text like a system message.
Parameters
message: string
Returns void
Class that represents network client.