summaryrefslogtreecommitdiffstats
path: root/AnvilStats/Callback.h
diff options
context:
space:
mode:
Diffstat (limited to 'AnvilStats/Callback.h')
-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.