summaryrefslogtreecommitdiffstats
path: root/src/Chunk.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-08-09 14:25:49 +0200
committermadmaxoft <github@xoft.cz>2014-08-09 14:25:49 +0200
commit4b1505f39d6a77b0fd389d1170a1dcc901f602cd (patch)
tree036067995500e4d770eeecbf3e3b9b791d604bb5 /src/Chunk.h
parentDebuggers: Simple cRankManager test case. (diff)
parentMerge pull request #1295 from mc-server/crystal (diff)
downloadcuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar
cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.gz
cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.bz2
cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.lz
cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.xz
cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.zst
cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.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