MCPcopy Create free account
hub / github.com/cuberite/cuberite / CompressBlockMetas

Method CompressBlockMetas

src/Generating/ChunkDesc.cpp:592–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590
591
592void cChunkDesc::CompressBlockMetas(cChunkDef::BlockNibbles & a_DestMetas)
593{
594 const NIBBLETYPE * AreaMetas = m_BlockArea.GetBlockMetas();
595 for (size_t i = 0; i < ARRAYCOUNT(a_DestMetas); i++)
596 {
597 a_DestMetas[i] = AreaMetas[2 * i] | (AreaMetas[2 * i + 1] << 4);
598 }
599}
600
601
602

Callers 1

OnChunkGeneratedMethod · 0.80

Calls 1

GetBlockMetasMethod · 0.80

Tested by

no test coverage detected