diff options
author | madmaxoft <github@xoft.cz> | 2013-11-14 15:37:09 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-11-14 15:37:09 +0100 |
commit | 082573771f469cfaef03d22e4281f207beef36c8 (patch) | |
tree | ac17ff48476205939d8b943eee2a7667c4b66ff1 /source/Generating/ChunkDesc.h | |
parent | Merge pull request #344 from marmot21/playerxp (diff) | |
download | cuberite-082573771f469cfaef03d22e4281f207beef36c8.tar cuberite-082573771f469cfaef03d22e4281f207beef36c8.tar.gz cuberite-082573771f469cfaef03d22e4281f207beef36c8.tar.bz2 cuberite-082573771f469cfaef03d22e4281f207beef36c8.tar.lz cuberite-082573771f469cfaef03d22e4281f207beef36c8.tar.xz cuberite-082573771f469cfaef03d22e4281f207beef36c8.tar.zst cuberite-082573771f469cfaef03d22e4281f207beef36c8.zip |
Diffstat (limited to 'source/Generating/ChunkDesc.h')
-rw-r--r-- | source/Generating/ChunkDesc.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/Generating/ChunkDesc.h b/source/Generating/ChunkDesc.h index 067d8494a..e130c463f 100644 --- a/source/Generating/ChunkDesc.h +++ b/source/Generating/ChunkDesc.h @@ -170,9 +170,12 @@ public: ); } - // tolua_end + /// Returns the block entity at the specified coords. + /// If there is no block entity at those coords, tries to create one, based on the block type + /// If the blocktype doesn't support a block entity, returns NULL. + cBlockEntity * GetBlockEntity(int a_RelX, int a_RelY, int a_RelZ); - void AddBlockEntity(cBlockEntity * a_BlockEntity); + // tolua_end // Accessors used by cChunkGenerator::Generator descendants: inline cChunkDef::BiomeMap & GetBiomeMap (void) { return m_BiomeMap; } |