summaryrefslogtreecommitdiffstats
path: root/source/Chunk.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-28 14:18:03 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-28 14:18:03 +0200
commit9cd633348697862121a916d0b1f894fbf5ad457c (patch)
treefd41c0d12161b36920c4439759dbf7d3bf8a2151 /source/Chunk.h
parentChunk / ChunkMap: Added support for unbounded querying blocktype-only or blockmeta-only (diff)
downloadcuberite-9cd633348697862121a916d0b1f894fbf5ad457c.tar
cuberite-9cd633348697862121a916d0b1f894fbf5ad457c.tar.gz
cuberite-9cd633348697862121a916d0b1f894fbf5ad457c.tar.bz2
cuberite-9cd633348697862121a916d0b1f894fbf5ad457c.tar.lz
cuberite-9cd633348697862121a916d0b1f894fbf5ad457c.tar.xz
cuberite-9cd633348697862121a916d0b1f894fbf5ad457c.tar.zst
cuberite-9cd633348697862121a916d0b1f894fbf5ad457c.zip
Diffstat (limited to 'source/Chunk.h')
-rw-r--r--source/Chunk.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/Chunk.h b/source/Chunk.h
index 506d0cd0f..a1a6bc1d7 100644
--- a/source/Chunk.h
+++ b/source/Chunk.h
@@ -159,6 +159,13 @@ public:
*/
cChunk * GetRelNeighborChunk(int a_RelX, int a_RelZ);
+ /**
+ Returns the chunk into which the relatively-specified block belongs, by walking the neighbors.
+ Also modifies the relative coords from this-relative to return-relative.
+ Will return self if appropriate. Returns NULL if not reachable through neighbors.
+ */
+ cChunk * GetRelNeighborChunkAdjustCoords(int & a_RelX, int & a_RelZ);
+
EMCSBiome GetBiomeAt(int a_RelX, int a_RelZ) const {return cChunkDef::GetBiome(m_BiomeMap, a_RelX, a_RelZ); }
void CollectPickupsByPlayer(cPlayer * a_Player);