summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-01-18 14:16:47 +0100
committerandrew <xdotftw@gmail.com>2014-01-18 14:16:47 +0100
commit9a9b51a5134d8afd8f089d247c59668bd7da695d (patch)
tree74be5c51628307a8ddf8ce39a0236dfb511c7941 /src/World.h
parentMerge pull request #552 from worktycho/c++11 (diff)
downloadcuberite-9a9b51a5134d8afd8f089d247c59668bd7da695d.tar
cuberite-9a9b51a5134d8afd8f089d247c59668bd7da695d.tar.gz
cuberite-9a9b51a5134d8afd8f089d247c59668bd7da695d.tar.bz2
cuberite-9a9b51a5134d8afd8f089d247c59668bd7da695d.tar.lz
cuberite-9a9b51a5134d8afd8f089d247c59668bd7da695d.tar.xz
cuberite-9a9b51a5134d8afd8f089d247c59668bd7da695d.tar.zst
cuberite-9a9b51a5134d8afd8f089d247c59668bd7da695d.zip
Diffstat (limited to 'src/World.h')
-rw-r--r--src/World.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/World.h b/src/World.h
index ef74a65c7..c410e658e 100644
--- a/src/World.h
+++ b/src/World.h
@@ -46,12 +46,13 @@ class cMobCensus;
typedef std::list< cPlayer * > cPlayerList;
-typedef cItemCallback<cPlayer> cPlayerListCallback;
-typedef cItemCallback<cEntity> cEntityCallback;
-typedef cItemCallback<cChestEntity> cChestCallback;
-typedef cItemCallback<cDispenserEntity> cDispenserCallback;
-typedef cItemCallback<cFurnaceEntity> cFurnaceCallback;
-typedef cItemCallback<cNoteEntity> cNoteBlockCallback;
+typedef cItemCallback<cPlayer> cPlayerListCallback;
+typedef cItemCallback<cEntity> cEntityCallback;
+typedef cItemCallback<cChestEntity> cChestCallback;
+typedef cItemCallback<cDispenserEntity> cDispenserCallback;
+typedef cItemCallback<cFurnaceEntity> cFurnaceCallback;
+typedef cItemCallback<cNoteEntity> cNoteBlockCallback;
+typedef cItemCallback<cCommandBlockEntity> cCommandBlockCallback;
@@ -466,6 +467,9 @@ public:
/// 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); // Exported in ManualBindings.cpp
+
+ /// 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); // TODO: Export
/// 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); // Exported in ManualBindings.cpp