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

Function Block_SetCustomDefined

src/Block.c:431–437  ·  view source on GitHub ↗

Sets whether the given block has been changed from default */

Source from the content-addressed store, hash-verified

429
430/* Sets whether the given block has been changed from default */
431static void Block_SetCustomDefined(BlockID block, cc_bool defined) {
432 if (defined) {
433 definedCustomBlocks[block >> 5] |= (1u << (block & 0x1F));
434 } else {
435 definedCustomBlocks[block >> 5] &= ~(1u << (block & 0x1F));
436 }
437}
438
439void Block_DefineCustom(BlockID block, cc_bool checkSprite) {
440 PackedCol black = PackedCol_Make(0, 0, 0, 255);

Callers 2

Block_DefineCustomFunction · 0.85
Block_UndefineCustomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected