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

Method GetChunkNoLoad

src/ChunkMap.cpp:192–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190
191
192cChunkPtr cChunkMap::GetChunkNoLoad( int a_ChunkX, int a_ChunkY, int a_ChunkZ )
193{
194 // No need to lock m_CSLayers, since it's already locked by the operation that called us
195 cChunkLayer * Layer = GetLayerForChunk( a_ChunkX, a_ChunkZ );
196 if (Layer == NULL)
197 {
198 // An error must have occurred, since layers are automatically created if they don't exist
199 return NULL;
200 }
201
202 return Layer->GetChunk(a_ChunkX, a_ChunkY, a_ChunkZ);
203}
204
205
206

Callers 2

MoveEntityToNewChunkMethod · 0.80
GetRelNeighborChunkMethod · 0.80

Calls 1

GetChunkMethod · 0.80

Tested by

no test coverage detected