diff options
author | Mattes D <github@xoft.cz> | 2014-03-07 17:54:10 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-03-07 17:54:10 +0100 |
commit | f72c747b5005df8bc53a9e38e52fc47ceae8515c (patch) | |
tree | 6abf8ca1a3f2bd35c059bffe226b26a4c553e723 /src/Chunk.h | |
parent | Fixed a typo. (diff) | |
parent | Link cItem in the documentation (diff) | |
download | cuberite-f72c747b5005df8bc53a9e38e52fc47ceae8515c.tar cuberite-f72c747b5005df8bc53a9e38e52fc47ceae8515c.tar.gz cuberite-f72c747b5005df8bc53a9e38e52fc47ceae8515c.tar.bz2 cuberite-f72c747b5005df8bc53a9e38e52fc47ceae8515c.tar.lz cuberite-f72c747b5005df8bc53a9e38e52fc47ceae8515c.tar.xz cuberite-f72c747b5005df8bc53a9e38e52fc47ceae8515c.tar.zst cuberite-f72c747b5005df8bc53a9e38e52fc47ceae8515c.zip |
Diffstat (limited to 'src/Chunk.h')
-rw-r--r-- | src/Chunk.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Chunk.h b/src/Chunk.h index c9e9697ca..b3fa563cc 100644 --- a/src/Chunk.h +++ b/src/Chunk.h @@ -32,6 +32,7 @@ class cDispenserEntity; class cFurnaceEntity; class cNoteEntity; class cMobHeadEntity; +class cFlowerPotEntity; class cBlockArea; class cPawn; class cPickup; @@ -48,7 +49,8 @@ typedef cItemCallback<cDispenserEntity> cDispenserCallback; typedef cItemCallback<cFurnaceEntity> cFurnaceCallback; typedef cItemCallback<cNoteEntity> cNoteBlockCallback; typedef cItemCallback<cCommandBlockEntity> cCommandBlockCallback; -typedef cItemCallback<cMobHeadEntity> cMobHeadBlockCallback; +typedef cItemCallback<cMobHeadEntity> cMobHeadCallback; +typedef cItemCallback<cFlowerPotEntity> cFlowerPotCallback; @@ -253,8 +255,11 @@ public: /** Calls the callback for the command block at the specified coords; returns false if there's no command block at those coords or callback returns true, returns true if found */ bool DoWithCommandBlockAt(int a_BlockX, int a_BlockY, int a_BlockZ, cCommandBlockCallback & a_Callback); - /** Calls the callback for the mob head block at the specified coords; returns false if there's no mob header block at those coords or callback returns true, returns true if found */ - bool DoWithMobHeadBlockAt(int a_BlockX, int a_BlockY, int a_BlockZ, cMobHeadBlockCallback & a_Callback); + /** Calls the callback for the mob head block at the specified coords; returns false if there's no mob head block at those coords or callback returns true, returns true if found */ + bool DoWithMobHeadAt(int a_BlockX, int a_BlockY, int a_BlockZ, cMobHeadCallback & a_Callback); + + /** Calls the callback for the flower pot at the specified coords; returns false if there's no flower pot at those coords or callback returns true, returns true if found */ + bool DoWithFlowerPotAt(int a_BlockX, int a_BlockY, int a_BlockZ, cFlowerPotCallback & a_Callback); /** Retrieves the test on the sign at the specified coords; returns false if there's no sign at those coords, true if found */ bool GetSignLines (int a_BlockX, int a_BlockY, int a_BlockZ, AString & a_Line1, AString & a_Line2, AString & a_Line3, AString & a_Line4); // Lua-accessible |