summaryrefslogtreecommitdiffstats
path: root/src/Blocks/WorldInterface.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-06-17 01:15:38 +0200
committerHowaner <franzi.moos@googlemail.com>2014-06-17 01:15:38 +0200
commita89524d5330ffbdbaea1d38421dabe8d8f62999e (patch)
tree4100b3ccc6d3ba6681f6a9e22cfb5bad8cd61feb /src/Blocks/WorldInterface.h
parentWrong arrow commit. (diff)
downloadcuberite-a89524d5330ffbdbaea1d38421dabe8d8f62999e.tar
cuberite-a89524d5330ffbdbaea1d38421dabe8d8f62999e.tar.gz
cuberite-a89524d5330ffbdbaea1d38421dabe8d8f62999e.tar.bz2
cuberite-a89524d5330ffbdbaea1d38421dabe8d8f62999e.tar.lz
cuberite-a89524d5330ffbdbaea1d38421dabe8d8f62999e.tar.xz
cuberite-a89524d5330ffbdbaea1d38421dabe8d8f62999e.tar.zst
cuberite-a89524d5330ffbdbaea1d38421dabe8d8f62999e.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/WorldInterface.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Blocks/WorldInterface.h b/src/Blocks/WorldInterface.h
index bfbb053d9..650a216c0 100644
--- a/src/Blocks/WorldInterface.h
+++ b/src/Blocks/WorldInterface.h
@@ -6,6 +6,12 @@
class cItems;
+typedef cItemCallback<cBlockEntity> cBlockEntityCallback;
+
+
+
+
+
class cWorldInterface
{
public:
@@ -29,6 +35,9 @@ 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;
+ /** Calls the callback for the block entity at the specified coords; returns false if there's no block entity at those coords, true if found */
+ virtual bool DoWithBlockEntityAt(int a_BlockX, int a_BlockY, int a_BlockZ, cBlockEntityCallback & a_Callback) = 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;