summaryrefslogtreecommitdiffstats
path: root/src/Blocks/WorldInterface.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-03-16 21:47:34 +0100
committerMattes D <github@xoft.cz>2014-03-16 21:47:34 +0100
commit4ec402e6f9431db61cffe8f9f5c964bbbd14929d (patch)
tree13a884198c3a9bffb34634aff2d91042655413d9 /src/Blocks/WorldInterface.h
parentMerge pull request #809 from Howaner/BlockEntitys (diff)
parentFixed VERIFY (diff)
downloadcuberite-4ec402e6f9431db61cffe8f9f5c964bbbd14929d.tar
cuberite-4ec402e6f9431db61cffe8f9f5c964bbbd14929d.tar.gz
cuberite-4ec402e6f9431db61cffe8f9f5c964bbbd14929d.tar.bz2
cuberite-4ec402e6f9431db61cffe8f9f5c964bbbd14929d.tar.lz
cuberite-4ec402e6f9431db61cffe8f9f5c964bbbd14929d.tar.xz
cuberite-4ec402e6f9431db61cffe8f9f5c964bbbd14929d.tar.zst
cuberite-4ec402e6f9431db61cffe8f9f5c964bbbd14929d.zip
Diffstat (limited to 'src/Blocks/WorldInterface.h')
-rw-r--r--src/Blocks/WorldInterface.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Blocks/WorldInterface.h b/src/Blocks/WorldInterface.h
index e59b00eff..580339d32 100644
--- a/src/Blocks/WorldInterface.h
+++ b/src/Blocks/WorldInterface.h
@@ -27,7 +27,13 @@ public:
/** Spawns a mob of the specified type. Returns the mob's EntityID if recognized and spawned, <0 otherwise */
virtual int SpawnMob(double a_PosX, double a_PosY, double a_PosZ, cMonster::eType a_MonsterType) = 0;
-
+
/** Sends the block on those coords to the player */
virtual void SendBlockTo(int a_BlockX, int a_BlockY, int a_BlockZ, cPlayer * a_Player) = 0;
+
+ /** Calls the callback for each player in the list; returns true if all players processed, false if the callback aborted by returning true */
+ virtual bool ForEachPlayer(cItemCallback<cPlayer> & a_Callback) = 0;
+
+ virtual void SetTimeOfDay(Int64 a_TimeOfDay) = 0;
+
};