summaryrefslogtreecommitdiffstats
path: root/AnvilStats/Callback.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-22 07:49:14 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-22 07:49:14 +0100
commit14763ed3c68bcf2a21e2494bc0d8920cc0ac1f62 (patch)
tree4fd68c617300791d37ddcbb7f9005fe680eb3b74 /AnvilStats/Callback.h
parentObsoleted E_BLOCK_COCA_PLANT in favor of E_BLOCK_COCOA_POD. (diff)
downloadcuberite-14763ed3c68bcf2a21e2494bc0d8920cc0ac1f62.tar
cuberite-14763ed3c68bcf2a21e2494bc0d8920cc0ac1f62.tar.gz
cuberite-14763ed3c68bcf2a21e2494bc0d8920cc0ac1f62.tar.bz2
cuberite-14763ed3c68bcf2a21e2494bc0d8920cc0ac1f62.tar.lz
cuberite-14763ed3c68bcf2a21e2494bc0d8920cc0ac1f62.tar.xz
cuberite-14763ed3c68bcf2a21e2494bc0d8920cc0ac1f62.tar.zst
cuberite-14763ed3c68bcf2a21e2494bc0d8920cc0ac1f62.zip
Diffstat (limited to '')
-rw-r--r--AnvilStats/Callback.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/AnvilStats/Callback.h b/AnvilStats/Callback.h
index 52d2e27eb..92d394d0e 100644
--- a/AnvilStats/Callback.h
+++ b/AnvilStats/Callback.h
@@ -56,7 +56,10 @@ public:
virtual bool OnBiomes(const unsigned char * a_BiomeData) { return true; }
- virtual bool OnHeightMap(const int * a_HeightMap) { return true; }
+ /** Called when a heightmap for the chunk is read from the file.
+ Note that the heightmap is given in big-endian ints, so if you want it, you need to ntohl() it first!
+ */
+ virtual bool OnHeightMap(const int * a_HeightMapBE) { return true; }
/** If there is data for the section, this callback is called; otherwise OnEmptySection() is called instead.
All OnSection() callbacks are called first, and only then all the remaining sections are reported in OnEmptySection().
@@ -75,6 +78,10 @@ public:
*/
virtual bool OnEmptySection(unsigned char a_Y) { return false; }
+ /** Called after all sections have been processed via either OnSection() or OnEmptySection().
+ */
+ virtual bool OnSectionsFinished(void) { return true; }
+
/** Called for each entity in the chunk.
Common parameters are parsed from the NBT.
The callback may parse any other param from the a_NBT and a_NBTTag parameters.