Cuberite
A lightweight, fast and extensible game server for Minecraft
|
The interface through which the generated chunks are handed to the cWorld or whoever created us. More...
#include <ChunkGeneratorThread.h>
Public Member Functions | |
virtual bool | HasChunkAnyClients (cChunkCoords a_Coords)=0 |
Called when the generator is overloaded to skip chunks that are no longer needed. More... | |
virtual bool | IsChunkQueued (cChunkCoords a_Coords)=0 |
Called to check whether the specified chunk is in the queued state. More... | |
virtual bool | IsChunkValid (cChunkCoords a_Coords)=0 |
Called just before the chunk generation is started, to verify that it hasn't been generated in the meantime. More... | |
virtual void | OnChunkGenerated (cChunkDesc &a_ChunkDesc)=0 |
Called after the chunk has been generated The interface may store the chunk, send it over network, whatever. More... | |
virtual | ~cChunkSink () |
The interface through which the generated chunks are handed to the cWorld or whoever created us.
Definition at line 49 of file ChunkGeneratorThread.h.
|
inlinevirtual |
Definition at line 53 of file ChunkGeneratorThread.h.
|
pure virtual |
Called when the generator is overloaded to skip chunks that are no longer needed.
If this callback returns false, the chunk is not generated.
Implemented in cWorld::cChunkGeneratorCallbacks.
|
pure virtual |
Called to check whether the specified chunk is in the queued state.
Currently used only in Debug-mode asserts.
Implemented in cWorld::cChunkGeneratorCallbacks.
|
pure virtual |
Called just before the chunk generation is started, to verify that it hasn't been generated in the meantime.
If this callback returns true, the chunk is not generated.
Implemented in cWorld::cChunkGeneratorCallbacks.
|
pure virtual |
Called after the chunk has been generated The interface may store the chunk, send it over network, whatever.
The chunk is not expected to be modified, but the generator will survive if the implementation changes the data within. All changes are ignored, though.
Implemented in cWorld::cChunkGeneratorCallbacks.