diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-08-05 22:48:23 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-08-05 22:48:23 +0200 |
commit | 06942871dde1388284a4fe222040720de3923b03 (patch) | |
tree | fb63be31f559ccb37ef0a05fd5148edef270fcfa /src/Chunk.h | |
parent | Fixed unsigned long comparison to size_t (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/Chunk.h | 6 |
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 |