Skip to content

Client

Available functions

Client_NewBot

Client *Client_NewBot(void);

Client_IsBot

cs_bool Client_IsBot(Client *client);

Client_Lock

void Client_Lock(Client *client);

Client_Unlock

void Client_Unlock(Client *client);

Client_ChangeWorld

cs_bool Client_ChangeWorld(Client *client, World *world);

Client_Chat

void Client_Chat(Client *client, EMesgType type, cs_str message);

Client_Kick

void Client_Kick(Client *client, cs_str reason)

Client_KickFormat

void Client_KickFormat(Client *client, cs_str format, ...);

Client_UpdateWorldInfo *

void Client_UpdateInfo(Client *client, World *world, cs_bool updateAll);

Client_Update *

void Client_Update(Client *client);

Client_SendHacks *

cs_bool Client_SendHacks(Client *client, CPEHacks *hacks);

Client_NewSelection

CPECuboid *Client_NewSelection(Client *client);

Client_UpdateSelection *

cs_bool Client_UpdateSelection(Client *client, CPECuboid *cub);

image

Client_RemoveSelection *

cs_bool Client_RemoveSelection(Client *client, CPECuboid *cub);

Client_TeleportTo

cs_bool Client_TeleportTo(Client *client, Vec *pos, Ang *ang);

Client_TeleportToSpawn

cs_bool Client_TeleportToSpawn(Client *client);

Client_CheckState

cs_bool Client_CheckState(Client *client, EClientState state);

Client_IsClosed

cs_bool Client_IsClosed(Client *client);

Client_IsLocal

cs_bool Client_IsLocal(Client *client);

Client_IsInSameWorld

cs_bool Client_IsInSameWorld(Client *client, Client *other);

Client_IsInWorld

cs_bool Client_IsInWorld(Client *client, World *world);

Client_IsOP

cs_bool Client_IsOP(Client *client);

Client_IsSpawned

cs_bool Client_IsSpawned(Client *client);

Client_IsFirstSpawn

cs_bool Client_IsFirstSpawn(Client *client);

Client_SetDisplayName

cs_bool Client_SetDisplayName(Client *client, cs_str name);

Client_SetWeather

cs_bool Client_SetWeather(Client *client, cs_int8 type);

Client_SetInvOrder

cs_bool Client_SetInvOrder(Client *client, cs_byte order, BlockID block);

Client_SetServerIdent

cs_bool Client_SetServerIdent(Client *client, cs_str name, cs_str motd);

Client_SetEnvProperty

cs_bool Client_SetEnvProperty(Client *client, EProp property, cs_int32 value);

Client_SetEnvColor

cs_bool Client_SetEnvColor(Client *client, EColor type, Color3* color);

Client_SetTexturePack

cs_bool Client_SetTexturePack(Client *client, cs_str url);

Client_AddTextColor

cs_bool Client_AddTextColor(Client *client, Color4* color, cs_char code);

Client_SetBlock

void Client_SetBlock(Client *client, SVec *pos, BlockID id);

Client_SetModel

cs_bool Client_SetModel(Client *client, cs_int16 model);

Client_SetModelStr

cs_bool Client_SetModelStr(Client *client, cs_str model);

Client_SetBlockPerm

cs_bool Client_SetBlockPerm(Client *client, BlockID block, cs_bool allowPlace, cs_bool allowDestroy);

Client_SetHeldBlock

cs_bool Client_SetHeldBlock(Client *client, BlockID block, cs_bool preventChange);

Client_SetClickDistance

cs_bool Client_SetClickDistance(Client *client, cs_uint16 dist);

Client_SetHotkey

cs_bool Client_SetHotkey(Client *client, cs_str action, ELWJGLKey keycode, ELWJGLMod keymod);

Client_SetHotbar

cs_bool Client_SetHotbar(Client *client, cs_byte pos, BlockID block);

Client_SetSkin

cs_bool Client_SetSkin(Client *client, cs_str skin);

Client_SetSpawn

cs_bool Client_SetSpawn(Client *client, Vec *pos, Ang *ang);

Client_SetOP

cs_bool Client_SetOP(Client *client, cs_bool state);

Client_SetVelocity

cs_bool Client_SetVelocity(Client *client, Vec *velocity, cs_byte mode);

Client_SetProp

cs_bool Client_SetProp(Client *client, EEntProp prop, cs_int32 value);

Client_SetGroup

cs_bool Client_SetGroup(Client *client, cs_uintptr gid);

Client_SpawnParticle

cs_bool Client_SpawnParticle(Client *client, cs_byte id, Vec *pos, Vec *origin);

Client_SendPluginMessage

cs_bool Client_SendPluginMessage(Client *client, cs_byte channel, cs_str message);

Client_UndefineModel

cs_bool Client_UndefineModel(Client *client, cs_byte id);

Client_ExtTeleportTo

cs_bool Client_ExtTeleportTo(Client *client, cs_byte behavior, Vec *pos, Ang *ang);

Client_GetState

EClientState Client_GetState(Client *client);

Client_GetName

cs_str Client_GetName(Client *client);

Client_GetDisplayName

cs_str Client_GetDisplayName(Client *client);

Client_GetAppName

cs_str Client_GetAppName(Client *client);

Client_GetKey

cs_str Client_GetKey(Client *client);

Client_GetSkin

cs_str Client_GetSkin(Client *client);

Client_GetDisconnectReason

cs_str Client_GetDisconnectReason(Client *client);

Client_GetID

ClientID Client_GetID(Client *client);

Client_GetByID

Client *Client_GetByID(ClientID id);

Client_GetByName

Client *Client_GetByName(cs_str name);

Client_GetWorld

World *Client_GetWorld(Client *client);

Client_GetStandBlock

BlockID Client_GetStandBlock(Client *client);

Client_GetFluidLevel

cs_int8 Client_GetFluidLevel(Client *client, BlockID *fluid);

Client_GetModel

cs_int16 Client_GetModel(Client *client);

Client_GetHeldBlock

BlockID Client_GetHeldBlock(Client *client);

Client_GetClickDistance

cs_uint16 Client_GetClickDistance(Client *client);

Client_GetClickDistanceInBlocks

cs_float Client_GetClickDistanceInBlocks(Client *client);

Client_GetPosition

void Client_GetPosition(Client *client, Vec *pos, Ang *ang);

Client_GetExtVer

cs_int32 Client_GetExtVer(Client *client, cs_ulong exthash);

Client_GetAddr

cs_uint32 Client_GetAddr(Client *client);

Client_GetPing

cs_int32 Client_GetPing(Client *client);

Client_GetAvgPing

cs_float Client_GetAvgPing(Client *client);

Client_GetGroup

CGroup *Client_GetGroup(Client *client);

Client_GetGroupID

cs_uintptr Client_GetGroupID(Client *client);

Client_Spawn

cs_bool Client_Spawn(Client *client);

Client_Despawn

cs_bool Client_Despawn(Client *client);