diff options
author | Mattes D <github@xoft.cz> | 2013-12-14 22:00:30 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2013-12-14 22:00:30 +0100 |
commit | 22ee94ffaf2ff1098a77b2e9a2a97040e0d1986e (patch) | |
tree | 4299dac2569ac649645a28bbe8aa50f1ba9de246 /src/Chunk.h | |
parent | Merge pull request #429 from worktycho/quickfixs (diff) | |
parent | Potentially fixed debug asserts (diff) | |
download | cuberite-22ee94ffaf2ff1098a77b2e9a2a97040e0d1986e.tar cuberite-22ee94ffaf2ff1098a77b2e9a2a97040e0d1986e.tar.gz cuberite-22ee94ffaf2ff1098a77b2e9a2a97040e0d1986e.tar.bz2 cuberite-22ee94ffaf2ff1098a77b2e9a2a97040e0d1986e.tar.lz cuberite-22ee94ffaf2ff1098a77b2e9a2a97040e0d1986e.tar.xz cuberite-22ee94ffaf2ff1098a77b2e9a2a97040e0d1986e.tar.zst cuberite-22ee94ffaf2ff1098a77b2e9a2a97040e0d1986e.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 9e5d117c5..a5bc9863b 100644 --- a/src/Chunk.h +++ b/src/Chunk.h @@ -35,7 +35,6 @@ namespace Json class cWorld; -class cFurnaceEntity; class cClientHandle; class cServer; class MTRand; @@ -44,6 +43,7 @@ class cChunkMap; class cChestEntity; class cDispenserEntity; class cFurnaceEntity; +class cNoteEntity; class cBlockArea; class cPawn; class cPickup; @@ -58,6 +58,7 @@ typedef cItemCallback<cEntity> cEntityCallback; typedef cItemCallback<cChestEntity> cChestCallback; typedef cItemCallback<cDispenserEntity> cDispenserCallback; typedef cItemCallback<cFurnaceEntity> cFurnaceCallback; +typedef cItemCallback<cNoteEntity> cNoteBlockCallback; @@ -246,6 +247,9 @@ public: /// Calls the callback for the furnace at the specified coords; returns false if there's no furnace at those coords or callback returns true, returns true if found bool DoWithFurnaceAt(int a_BlockX, int a_BlockY, int a_BlockZ, cFurnaceCallback & a_Callback); // Lua-accessible + /// Calls the callback for the noteblock at the specified coords; returns false if there's no noteblock at those coords or callback returns true, returns true if found + bool DoWithNoteBlockAt(int a_BlockX, int a_BlockY, int a_BlockZ, cNoteBlockCallback & 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 |