summaryrefslogtreecommitdiffstats
path: root/source/ChunkMap.h
diff options
context:
space:
mode:
authorluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-12-26 18:16:33 +0100
committerluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-12-26 18:16:33 +0100
commit575abe8691bf2f615f17e6212ea5ec6265ffd4ed (patch)
treed37b31c6eac993b643cf0dccd7d38c2fe316ff04 /source/ChunkMap.h
parentAdjusted the protocol framework to support different types of falling block spawning. (diff)
downloadcuberite-575abe8691bf2f615f17e6212ea5ec6265ffd4ed.tar
cuberite-575abe8691bf2f615f17e6212ea5ec6265ffd4ed.tar.gz
cuberite-575abe8691bf2f615f17e6212ea5ec6265ffd4ed.tar.bz2
cuberite-575abe8691bf2f615f17e6212ea5ec6265ffd4ed.tar.lz
cuberite-575abe8691bf2f615f17e6212ea5ec6265ffd4ed.tar.xz
cuberite-575abe8691bf2f615f17e6212ea5ec6265ffd4ed.tar.zst
cuberite-575abe8691bf2f615f17e6212ea5ec6265ffd4ed.zip
Diffstat (limited to '')
-rw-r--r--source/ChunkMap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/ChunkMap.h b/source/ChunkMap.h
index 6a1a26d83..ba037444a 100644
--- a/source/ChunkMap.h
+++ b/source/ChunkMap.h
@@ -184,12 +184,18 @@ public:
/// Calls the callback for each chest in the specified chunk; returns true if all chests processed, false if the callback aborted by returning true
bool ForEachChestInChunk (int a_ChunkX, int a_ChunkZ, cChestCallback & a_Callback); // Lua-accessible
+ /// Calls the callback for each dispenser in the specified chunk; returns true if all dispensers processed, false if the callback aborted by returning true
+ bool ForEachDispenserInChunk(int a_ChunkX, int a_ChunkZ, cDispenserCallback & a_Callback); // Lua-accessible
+
/// Calls the callback for each furnace in the specified chunk; returns true if all furnaces processed, false if the callback aborted by returning true
bool ForEachFurnaceInChunk(int a_ChunkX, int a_ChunkZ, cFurnaceCallback & a_Callback); // Lua-accessible
/// Calls the callback for the chest at the specified coords; returns false if there's no chest at those coords, true if found
bool DoWithChestAt (int a_BlockX, int a_BlockY, int a_BlockZ, cChestCallback & a_Callback); // Lua-acessible
+ /// Calls the callback for the dispenser at the specified coords; returns false if there's no dispenser at those coords, true if found
+ bool DoWithDispenserAt(int a_BlockX, int a_BlockY, int a_BlockZ, cDispenserCallback & a_Callback); // Lua-accessible
+
/// Calls the callback for the furnace at the specified coords; returns false if there's no furnace at those coords, true if found
bool DoWithFurnaceAt(int a_BlockX, int a_BlockY, int a_BlockZ, cFurnaceCallback & a_Callback); // Lua-accessible