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

Method DoGenerate

src/Generating/ChunkGenerator.cpp:271–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269
270
271void cChunkGenerator::DoGenerate(int a_ChunkX, int a_ChunkY, int a_ChunkZ)
272{
273 ASSERT(m_PluginInterface != NULL);
274 ASSERT(m_ChunkSink != NULL);
275
276 cChunkDesc ChunkDesc(a_ChunkX, a_ChunkZ);
277 m_PluginInterface->CallHookChunkGenerating(ChunkDesc);
278 m_Generator->DoGenerate(a_ChunkX, a_ChunkZ, ChunkDesc);
279 m_PluginInterface->CallHookChunkGenerated(ChunkDesc);
280
281 #ifdef _DEBUG
282 // Verify that the generator has produced valid data:
283 ChunkDesc.VerifyHeightmap();
284 #endif
285
286 m_ChunkSink->OnChunkGenerated(ChunkDesc);
287}
288
289
290

Callers

nothing calls this directly

Calls 4

VerifyHeightmapMethod · 0.80
OnChunkGeneratedMethod · 0.45

Tested by

no test coverage detected