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

Method GetBlockBlockLight

src/ChunkMap.cpp:1224–1236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1222
1223
1224NIBBLETYPE cChunkMap::GetBlockBlockLight(int a_BlockX, int a_BlockY, int a_BlockZ)
1225{
1226 int ChunkX, ChunkZ;
1227 cChunkDef::AbsoluteToRelative(a_BlockX, a_BlockY, a_BlockZ, ChunkX, ChunkZ );
1228
1229 cCSLock Lock(m_CSLayers);
1230 cChunkPtr Chunk = GetChunk( ChunkX, ZERO_CHUNK_Y, ChunkZ );
1231 if ((Chunk != NULL) && Chunk->IsValid() )
1232 {
1233 return Chunk->GetBlockLight(a_BlockX, a_BlockY, a_BlockZ);
1234 }
1235 return 0;
1236}
1237
1238
1239

Callers

nothing calls this directly

Calls 2

IsValidMethod · 0.45
GetBlockLightMethod · 0.45

Tested by

no test coverage detected