summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.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/ChunkMap.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/ChunkMap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ChunkMap.h b/src/ChunkMap.h
index ef070194b..f079c9a1b 100644
--- a/src/ChunkMap.h
+++ b/src/ChunkMap.h
@@ -22,6 +22,7 @@ class cDispenserEntity;
class cDropperEntity;
class cDropSpenserEntity;
class cFurnaceEntity;
+class cNoteEntity;
class cPawn;
class cPickup;
class cChunkDataSerializer;
@@ -38,6 +39,7 @@ typedef cItemCallback<cDispenserEntity> cDispenserCallback;
typedef cItemCallback<cDropperEntity> cDropperCallback;
typedef cItemCallback<cDropSpenserEntity> cDropSpenserCallback;
typedef cItemCallback<cFurnaceEntity> cFurnaceCallback;
+typedef cItemCallback<cNoteEntity> cNoteBlockCallback;
typedef cItemCallback<cChunk> cChunkCallback;
@@ -228,6 +230,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); // Lua-accessible
+
/// 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