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

Function CPE_ChangeModel

src/Protocol.c:1230–1237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1228}
1229
1230static void CPE_ChangeModel(cc_uint8* data) {
1231 struct Entity* e;
1232 EntityID id = data[0];
1233 cc_string model = UNSAFE_GetString(data + 1);
1234
1235 e = Entities.List[id];
1236 if (e) Entity_SetModel(e, &model);
1237}
1238
1239static void CPE_EnvSetMapAppearance(cc_uint8* data) {
1240 cc_string url = UNSAFE_GetString(data);

Callers

nothing calls this directly

Calls 2

UNSAFE_GetStringFunction · 0.85
Entity_SetModelFunction · 0.85

Tested by

no test coverage detected