summaryrefslogtreecommitdiffstats
path: root/src/Chunk.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-02-18 13:06:18 +0100
committermadmaxoft <github@xoft.cz>2014-02-18 13:49:23 +0100
commit803ea412361ee2f4b1d74a811ddbee05f50c9345 (patch)
tree7d4b18657afb9eb541aeb0e2cd46e8da258251e1 /src/Chunk.h
parentAdded a bit more documentation to cForEachChunkProvider. (diff)
downloadcuberite-803ea412361ee2f4b1d74a811ddbee05f50c9345.tar
cuberite-803ea412361ee2f4b1d74a811ddbee05f50c9345.tar.gz
cuberite-803ea412361ee2f4b1d74a811ddbee05f50c9345.tar.bz2
cuberite-803ea412361ee2f4b1d74a811ddbee05f50c9345.tar.lz
cuberite-803ea412361ee2f4b1d74a811ddbee05f50c9345.tar.xz
cuberite-803ea412361ee2f4b1d74a811ddbee05f50c9345.tar.zst
cuberite-803ea412361ee2f4b1d74a811ddbee05f50c9345.zip
Diffstat (limited to '')
-rw-r--r--src/Chunk.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Chunk.h b/src/Chunk.h
index 696690068..682ec6170 100644
--- a/src/Chunk.h
+++ b/src/Chunk.h
@@ -175,6 +175,14 @@ public:
EMCSBiome GetBiomeAt(int a_RelX, int a_RelZ) const {return cChunkDef::GetBiome(m_BiomeMap, a_RelX, a_RelZ); }
+ /** Sets the biome at the specified relative coords.
+ Doesn't resend the chunk to clients. */
+ void SetBiomeAt(int a_RelX, int a_RelZ, EMCSBiome a_Biome);
+
+ /** Sets the biome in the specified relative coords area. All the coords are inclusive.
+ Sends the chunk to all relevant clients. */
+ void SetAreaBiome(int a_MinRelX, int a_MaxRelX, int a_MinRelZ, int a_MaxRelZ, EMCSBiome a_Biome);
+
void CollectPickupsByPlayer(cPlayer * a_Player);
/** Sets the sign text. Returns true if successful. Also sends update packets to all clients in the chunk */