summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-01-25 22:55:33 +0100
committerMattes D <github@xoft.cz>2014-01-25 22:55:33 +0100
commitf78a62a5e3243a04b6c5544b851e0ee076ddb390 (patch)
tree1876409ce6146bbedd4db51b911cc96009288e5e /src/World.h
parentMerge pull request #588 from mc-server/Sheep_Eating (diff)
parentStupid Mistake fixed (diff)
downloadcuberite-f78a62a5e3243a04b6c5544b851e0ee076ddb390.tar
cuberite-f78a62a5e3243a04b6c5544b851e0ee076ddb390.tar.gz
cuberite-f78a62a5e3243a04b6c5544b851e0ee076ddb390.tar.bz2
cuberite-f78a62a5e3243a04b6c5544b851e0ee076ddb390.tar.lz
cuberite-f78a62a5e3243a04b6c5544b851e0ee076ddb390.tar.xz
cuberite-f78a62a5e3243a04b6c5544b851e0ee076ddb390.tar.zst
cuberite-f78a62a5e3243a04b6c5544b851e0ee076ddb390.zip
Diffstat (limited to 'src/World.h')
-rw-r--r--src/World.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/World.h b/src/World.h
index 933e3ba6f..d7a7241d1 100644
--- a/src/World.h
+++ b/src/World.h
@@ -22,6 +22,7 @@
#include "Item.h"
#include "Mobs/Monster.h"
#include "Entities/ProjectileEntity.h"
+#include "ForEachChunkProvider.h"
#include "Scoreboard.h"
@@ -61,7 +62,7 @@ typedef cItemCallback<cCommandBlockEntity> cCommandBlockCallback;
// tolua_begin
-class cWorld
+class cWorld : public cForEachChunkProvider
{
public:
@@ -314,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
@@ -360,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