summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.h
diff options
context:
space:
mode:
authortycho <tycho@localhost>2015-03-21 18:17:26 +0100
committertycho <tycho@localhost>2015-05-07 04:47:46 +0200
commit448df85e569e85e1b4da4eac685950273f30ae1f (patch)
tree045241fff430ae2ffe0b97d7151e44293ad76467 /src/ChunkMap.h
parentMerge pull request #1946 from SafwatHalaby/lean (diff)
downloadcuberite-448df85e569e85e1b4da4eac685950273f30ae1f.tar
cuberite-448df85e569e85e1b4da4eac685950273f30ae1f.tar.gz
cuberite-448df85e569e85e1b4da4eac685950273f30ae1f.tar.bz2
cuberite-448df85e569e85e1b4da4eac685950273f30ae1f.tar.lz
cuberite-448df85e569e85e1b4da4eac685950273f30ae1f.tar.xz
cuberite-448df85e569e85e1b4da4eac685950273f30ae1f.tar.zst
cuberite-448df85e569e85e1b4da4eac685950273f30ae1f.zip
Diffstat (limited to 'src/ChunkMap.h')
-rw-r--r--src/ChunkMap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ChunkMap.h b/src/ChunkMap.h
index 0fac79c84..e9f1b94c0 100644
--- a/src/ChunkMap.h
+++ b/src/ChunkMap.h
@@ -104,6 +104,9 @@ public:
/** Calls the callback for the chunk specified, with ChunkMapCS locked; returns false if the chunk doesn't exist, otherwise returns the same value as the callback */
bool DoWithChunk(int a_ChunkX, int a_ChunkZ, cChunkCallback & a_Callback);
+ /** Calls the callback for the chunk at the block position specified, with ChunkMapCS locked; returns false if the chunk doesn't exist, otherwise returns the same value as the callback **/
+ bool DoWithChunkAt(Vector3i a_BlockPos, std::function<bool(cChunk &)> a_Callback);
+
/** Wakes up simulators for the specified block */
void WakeUpSimulators(int a_BlockX, int a_BlockY, int a_BlockZ);