diff options
author | madmaxoft <github@xoft.cz> | 2014-07-24 18:32:05 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-24 18:32:05 +0200 |
commit | c0b62ef139a65ca648135fb6999e6623438fdd71 (patch) | |
tree | 7b7c2bf9ec889308163f8a53dee9e9d4e23025be /src/Chunk.h | |
parent | Made the cWorld::SpawnMobFinalize function more readable. (diff) | |
download | cuberite-c0b62ef139a65ca648135fb6999e6623438fdd71.tar cuberite-c0b62ef139a65ca648135fb6999e6623438fdd71.tar.gz cuberite-c0b62ef139a65ca648135fb6999e6623438fdd71.tar.bz2 cuberite-c0b62ef139a65ca648135fb6999e6623438fdd71.tar.lz cuberite-c0b62ef139a65ca648135fb6999e6623438fdd71.tar.xz cuberite-c0b62ef139a65ca648135fb6999e6623438fdd71.tar.zst cuberite-c0b62ef139a65ca648135fb6999e6623438fdd71.zip |
Diffstat (limited to 'src/Chunk.h')
-rw-r--r-- | src/Chunk.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/Chunk.h b/src/Chunk.h index 9ab39a0a2..5d50f9717 100644 --- a/src/Chunk.h +++ b/src/Chunk.h @@ -95,16 +95,10 @@ public: /** Gets all chunk data, calls the a_Callback's methods for each data type */ void GetAllData(cChunkDataCallback & a_Callback); - /** Sets all chunk data */ - void SetAllData( - const BLOCKTYPE * a_BlockTypes, - const NIBBLETYPE * a_BlockMeta, - const NIBBLETYPE * a_BlockLight, - const NIBBLETYPE * a_BlockSkyLight, - const cChunkDef::HeightMap * a_HeightMap, - const cChunkDef::BiomeMap & a_BiomeMap, - cBlockEntityList & a_BlockEntities - ); + /** Sets all chunk data as either loaded from the storage or generated. + BlockLight and BlockSkyLight are optional, if not present, chunk will be marked as unlighted. + Modifies the BlockEntity list in a_SetChunkData - moves the block entities into the chunk. */ + void SetAllData(cSetChunkData & a_SetChunkData); void SetLight( const cChunkDef::BlockNibbles & a_BlockLight, |