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

Function Block_SetName

src/Block.c:515–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515void Block_SetName(BlockID block, const cc_string* name) {
516 String_CopyToRaw(Block_NamePtr(block), STRING_SIZE, name);
517}
518
519int Block_FindID(const cc_string* name) {
520 cc_string blockName;

Callers 4

Cw_Callback_5Function · 0.85
BlockEditCommand_ExecuteFunction · 0.85
Block_ResetPropsFunction · 0.85

Calls 1

String_CopyToRawFunction · 0.85

Tested by

no test coverage detected