summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-06-10 16:16:05 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-06-10 16:16:05 +0200
commitdd4b4150511f71c3d5a1433323d36268859f2c47 (patch)
treed98d6473566d0f0132a7afd72631abb69f68b942 /src/World.h
parentMerge pull request #2162 from lkolbly/master (diff)
downloadcuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar
cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar.gz
cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar.bz2
cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar.lz
cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar.xz
cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar.zst
cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.zip
Diffstat (limited to '')
-rw-r--r--src/World.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/World.h b/src/World.h
index 064b50165..078a25562 100644
--- a/src/World.h
+++ b/src/World.h
@@ -231,7 +231,6 @@ public:
void BroadcastChat (const cCompositeChat & a_Message, const cClientHandle * a_Exclude = nullptr);
// tolua_end
- void BroadcastChunkData (int a_ChunkX, int a_ChunkZ, cChunkDataSerializer & a_Serializer, const cClientHandle * a_Exclude = nullptr);
void BroadcastCollectEntity (const cEntity & a_Pickup, const cPlayer & a_Player, const cClientHandle * a_Exclude = nullptr);
void BroadcastDestroyEntity (const cEntity & a_Entity, const cClientHandle * a_Exclude = nullptr);
void BroadcastEntityEffect (const cEntity & a_Entity, int a_EffectID, int a_Amplifier, short a_Duration, const cClientHandle * a_Exclude = nullptr);
@@ -609,6 +608,7 @@ 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);
+ bool DoWithChunk(int a_ChunkX, int a_ChunkZ, std::function<bool(cChunk &)> 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);