diff options
author | Mattes D <github@xoft.cz> | 2014-08-06 17:14:39 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-08-06 17:14:39 +0200 |
commit | eae42d91f91eadeb9b1d021a685c7cc2b3799ebe (patch) | |
tree | cc197b2a677edaa30667e71caae4ee93d5bbd8e5 /src/Chunk.h | |
parent | Resending fire to the client when the interact cancelled. (diff) | |
parent | Fixed style issues (diff) | |
download | cuberite-eae42d91f91eadeb9b1d021a685c7cc2b3799ebe.tar cuberite-eae42d91f91eadeb9b1d021a685c7cc2b3799ebe.tar.gz cuberite-eae42d91f91eadeb9b1d021a685c7cc2b3799ebe.tar.bz2 cuberite-eae42d91f91eadeb9b1d021a685c7cc2b3799ebe.tar.lz cuberite-eae42d91f91eadeb9b1d021a685c7cc2b3799ebe.tar.xz cuberite-eae42d91f91eadeb9b1d021a685c7cc2b3799ebe.tar.zst cuberite-eae42d91f91eadeb9b1d021a685c7cc2b3799ebe.zip |
Diffstat (limited to 'src/Chunk.h')
-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 |