summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-01-20 18:17:24 +0100
committerTycho <work.tycho+git@gmail.com>2014-01-20 18:17:24 +0100
commit9bb61e6e2e23fc8a66dbc95d918f23b89ba60314 (patch)
tree363bbabcda11cc99018d983bcad240f34bf77bf4 /src/World.h
parentAdded Inifile and OSSupport Linking (diff)
downloadcuberite-9bb61e6e2e23fc8a66dbc95d918f23b89ba60314.tar
cuberite-9bb61e6e2e23fc8a66dbc95d918f23b89ba60314.tar.gz
cuberite-9bb61e6e2e23fc8a66dbc95d918f23b89ba60314.tar.bz2
cuberite-9bb61e6e2e23fc8a66dbc95d918f23b89ba60314.tar.lz
cuberite-9bb61e6e2e23fc8a66dbc95d918f23b89ba60314.tar.xz
cuberite-9bb61e6e2e23fc8a66dbc95d918f23b89ba60314.tar.zst
cuberite-9bb61e6e2e23fc8a66dbc95d918f23b89ba60314.zip
Diffstat (limited to 'src/World.h')
-rw-r--r--src/World.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/World.h b/src/World.h
index ef74a65c7..f5134c223 100644
--- a/src/World.h
+++ b/src/World.h
@@ -59,7 +59,7 @@ typedef cItemCallback<cNoteEntity> cNoteBlockCallback;
// tolua_begin
-class cWorld
+class cWorld : public cForEachChunkProvider
{
public:
@@ -315,7 +315,7 @@ public:
bool IsChunkLighted(int a_ChunkX, int a_ChunkZ);
/// Calls the callback for each chunk in the coords specified (all cords are inclusive). Returns true if all chunks have been processed successfully
- bool ForEachChunkInRect(int a_MinChunkX, int a_MaxChunkX, int a_MinChunkZ, int a_MaxChunkZ, cChunkDataCallback & a_Callback);
+ virtual bool ForEachChunkInRect(int a_MinChunkX, int a_MaxChunkX, int a_MinChunkZ, int a_MaxChunkZ, cChunkDataCallback & a_Callback);
// tolua_begin
@@ -361,7 +361,7 @@ public:
Prefer cBlockArea::Write() instead, this is the internal implementation; cBlockArea does error checking, too.
a_DataTypes is a bitmask of cBlockArea::baXXX constants ORed together.
*/
- bool WriteBlockArea(cBlockArea & a_Area, int a_MinBlockX, int a_MinBlockY, int a_MinBlockZ, int a_DataTypes);
+ virtual bool WriteBlockArea(cBlockArea & a_Area, int a_MinBlockX, int a_MinBlockY, int a_MinBlockZ, int a_DataTypes);
// tolua_begin