MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / CPE_SendNotifyPositionAction

Function CPE_SendNotifyPositionAction

src/Protocol.c:923–935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

921}
922
923void CPE_SendNotifyPositionAction(int action, int x, int y, int z) {
924 cc_uint8 data[9];
925 if (!Server.SupportsNotifyAction) return;
926
927 data[0] = OPCODE_NOTIFY_POSITION_ACTION;
928 {
929 Stream_SetU16_BE(data + 1, action);
930 Stream_SetU16_BE(data + 3, x);
931 Stream_SetU16_BE(data + 5, y);
932 Stream_SetU16_BE(data + 7, z);
933 }
934 Server.SendData(data, 9);
935}
936
937static void CPE_SendExtInfo(int extsCount) {
938 cc_uint8 data[67];

Callers 2

LocalPlayer_DoRespawnFunction · 0.85

Calls 1

Stream_SetU16_BEFunction · 0.85

Tested by

no test coverage detected