summaryrefslogtreecommitdiffstats
path: root/src/Chunk.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-14 17:52:22 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-14 17:52:22 +0100
commit95be80cdb5322720e7c9fbd13ec2692288afd931 (patch)
tree67c1bbcf1ebe887521d7c24dc5c2a2a84e5d3494 /src/Chunk.h
parentUpdate Core (diff)
downloadcuberite-95be80cdb5322720e7c9fbd13ec2692288afd931.tar
cuberite-95be80cdb5322720e7c9fbd13ec2692288afd931.tar.gz
cuberite-95be80cdb5322720e7c9fbd13ec2692288afd931.tar.bz2
cuberite-95be80cdb5322720e7c9fbd13ec2692288afd931.tar.lz
cuberite-95be80cdb5322720e7c9fbd13ec2692288afd931.tar.xz
cuberite-95be80cdb5322720e7c9fbd13ec2692288afd931.tar.zst
cuberite-95be80cdb5322720e7c9fbd13ec2692288afd931.zip
Diffstat (limited to '')
-rw-r--r--src/Chunk.h6
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