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

Function Block_SetSide

src/Block.c:170–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void Block_SetSide(TextureLoc texLoc, BlockID blockId) {
171 int index = blockId * FACE_COUNT;
172 Blocks.Textures[index + FACE_XMIN] = texLoc;
173 Blocks.Textures[index + FACE_XMAX] = texLoc;
174 Blocks.Textures[index + FACE_ZMIN] = texLoc;
175 Blocks.Textures[index + FACE_ZMAX] = texLoc;
176}
177
178
179/*########################################################################################################################*

Callers 3

BlockEditCommand_ExecuteFunction · 0.85
Block_ResetPropsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected