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

Function BlockDefs_DefineBlock

src/Protocol.c:1909–1919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1907}
1908
1909static void BlockDefs_DefineBlock(cc_uint8* data) {
1910 BlockID block = BlockDefs_DefineBlockCommonStart(&data, false);
1911
1912 cc_uint8 shape = *data++;
1913 if (shape > 0 && shape <= 16) {
1914 Blocks.MaxBB[block].y = shape / 16.0f;
1915 }
1916
1917 BlockDefs_DefineBlockCommonEnd(data, shape, block);
1918 Block_DefineCustom(block, true);
1919}
1920
1921static void BlockDefs_UndefineBlock(cc_uint8* data) {
1922 BlockID block;

Callers

nothing calls this directly

Calls 3

Block_DefineCustomFunction · 0.85

Tested by

no test coverage detected