summaryrefslogtreecommitdiffstats
path: root/src/Chunk.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-08-05 22:48:23 +0200
committerTycho <work.tycho+git@gmail.com>2014-08-05 22:48:23 +0200
commit06942871dde1388284a4fe222040720de3923b03 (patch)
treefb63be31f559ccb37ef0a05fd5148edef270fcfa /src/Chunk.h
parentFixed unsigned long comparison to size_t (diff)
downloadcuberite-06942871dde1388284a4fe222040720de3923b03.tar
cuberite-06942871dde1388284a4fe222040720de3923b03.tar.gz
cuberite-06942871dde1388284a4fe222040720de3923b03.tar.bz2
cuberite-06942871dde1388284a4fe222040720de3923b03.tar.lz
cuberite-06942871dde1388284a4fe222040720de3923b03.tar.xz
cuberite-06942871dde1388284a4fe222040720de3923b03.tar.zst
cuberite-06942871dde1388284a4fe222040720de3923b03.zip
Diffstat (limited to 'src/Chunk.h')
-rw-r--r--src/Chunk.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Chunk.h b/src/Chunk.h
index 5cde3f08f..813a8b13f 100644
--- a/src/Chunk.h
+++ b/src/Chunk.h
@@ -43,6 +43,7 @@ class cBlockArea;
class cFluidSimulatorData;
class cMobCensus;
class cMobSpawner;
+class cRedstonePoweredEntity;
typedef std::list<cClientHandle *> cClientHandleList;
typedef cItemCallback<cEntity> cEntityCallback;
@@ -54,6 +55,7 @@ typedef cItemCallback<cNoteEntity> cNoteBlockCallback;
typedef cItemCallback<cCommandBlockEntity> cCommandBlockCallback;
typedef cItemCallback<cMobHeadEntity> cMobHeadCallback;
typedef cItemCallback<cFlowerPotEntity> cFlowerPotCallback;
+typedef cItemCallback<cRedstonePoweredEntity> cRedstonePoweredCallback;
@@ -237,7 +239,9 @@ public:
/** 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 */
bool DoWithBlockEntityAt(int a_BlockX, int a_BlockY, int a_BlockZ, cBlockEntityCallback & a_Callback); // Lua-acessible
-
+
+ /** Calls the callback for the redstone powered entity at the specified coords; returns false if there's no redstone powered entity at those coords, true if found */
+ bool DoWithRedstonePoweredEntityAt(int a_BlockX, int a_BlockY, int a_BlockZ, cRedstonePoweredCallback & a_Callback);
/** Calls the callback for the beacon at the specified coords; returns false if there's no beacon at those coords, true if found */
bool DoWithBeaconAt(int a_BlockX, int a_BlockY, int a_BlockZ, cBeaconCallback & a_Callback); // Lua-acessible