GetLocale = { Params ="", Return ="Locale", Notes ="Returns the locale string that the client sends as part of the protocol handshake. Can be used to provide localized strings." },
GetPing = { Params ="", Return ="number", Notes ="Returns the ping time, in ms" },
GetPlayer = { Params ="", Return ="{{cPlayer|cPlayer}}", Notes ="Returns the player object connected to this client. Note that this may be nil, for example if the player object is not yet spawned." },
GetProtocolVersion = { Params ="", Return ="number", Notes ="Returns the protocol version number of the protocol that the client is talking. Returns zero if the protocol version is not (yet) known." },
GetUniqueID = { Params ="", Return ="number", Notes ="Returns the UniqueID of the client used to identify the client in the server" },
GetUUID = { Params ="", Return ="string", Notes ="Returns the authentication-based UUID of the client. This UUID should be used to identify the player when persisting any player-related data. Returns a 32-char UUID (no dashes)" },
GetUsername = { Params ="", Return ="string", Notes ="Returns the username that the client has provided" },
@@ -427,6 +433,9 @@ class cClientHandle : // tolua_export
/** The brand identification of the client, as received in the MC|Brand plugin message or set from a plugin. */
AString m_ClientBrand;
/** The version of the protocol that the client is talking, or 0 if unknown. */
UInt32 m_ProtocolVersion;
/** Handles the block placing packet when it is a real block placement (not block-using, item-using or eating) */
voidHandlePlaceBlock(int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ, cItemHandler & a_ItemHandler);
0 comments on commit
a8aecea