diff options
author | Mattes D <github@xoft.cz> | 2015-04-30 23:16:33 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-04-30 23:16:33 +0200 |
commit | a3c4b7580b1f5e0ac6aa74ba8c702359d32eda27 (patch) | |
tree | bcb6ff9fc661b0fc1d8ad492f12c874227b4d949 /src/BlockArea.h | |
parent | Merge pull request #1923 from mc-server/ReadWholeFileFix (diff) | |
download | cuberite-a3c4b7580b1f5e0ac6aa74ba8c702359d32eda27.tar cuberite-a3c4b7580b1f5e0ac6aa74ba8c702359d32eda27.tar.gz cuberite-a3c4b7580b1f5e0ac6aa74ba8c702359d32eda27.tar.bz2 cuberite-a3c4b7580b1f5e0ac6aa74ba8c702359d32eda27.tar.lz cuberite-a3c4b7580b1f5e0ac6aa74ba8c702359d32eda27.tar.xz cuberite-a3c4b7580b1f5e0ac6aa74ba8c702359d32eda27.tar.zst cuberite-a3c4b7580b1f5e0ac6aa74ba8c702359d32eda27.zip |
Diffstat (limited to 'src/BlockArea.h')
-rw-r--r-- | src/BlockArea.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/BlockArea.h b/src/BlockArea.h index ce417ceb4..856df542f 100644 --- a/src/BlockArea.h +++ b/src/BlockArea.h @@ -303,7 +303,11 @@ public: bool HasBlockMetas (void) const { return (m_BlockMetas != nullptr); } bool HasBlockLights (void) const { return (m_BlockLight != nullptr); } bool HasBlockSkyLights(void) const { return (m_BlockSkyLight != nullptr); } - + + /** Returns the count of blocks that are not air. + Returns 0 if blocktypes not available. Block metas are ignored (if present, air with any meta is still considered air). */ + size_t CountNonAirBlocks(void) const; + // tolua_end /** Returns the minimum and maximum coords in each direction for the first non-ignored block in each direction. |