summaryrefslogtreecommitdiffstats
path: root/src/Generating/ChunkDesc.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2019-09-06 14:14:25 +0200
committerMattes D <github@xoft.cz>2019-09-07 13:38:07 +0200
commit343bc2729e92b2a4f10edbd1d89d982b881ec3d2 (patch)
tree4a66cbff3bcf8761a31473d2f2197e5d11cf2a0b /src/Generating/ChunkDesc.h
parentCompoGenNether: Fixed different data produced in Linux Release builds. (diff)
downloadcuberite-343bc2729e92b2a4f10edbd1d89d982b881ec3d2.tar
cuberite-343bc2729e92b2a4f10edbd1d89d982b881ec3d2.tar.gz
cuberite-343bc2729e92b2a4f10edbd1d89d982b881ec3d2.tar.bz2
cuberite-343bc2729e92b2a4f10edbd1d89d982b881ec3d2.tar.lz
cuberite-343bc2729e92b2a4f10edbd1d89d982b881ec3d2.tar.xz
cuberite-343bc2729e92b2a4f10edbd1d89d982b881ec3d2.tar.zst
cuberite-343bc2729e92b2a4f10edbd1d89d982b881ec3d2.zip
Diffstat (limited to 'src/Generating/ChunkDesc.h')
-rw-r--r--src/Generating/ChunkDesc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Generating/ChunkDesc.h b/src/Generating/ChunkDesc.h
index b813a88aa..a488d2a96 100644
--- a/src/Generating/ChunkDesc.h
+++ b/src/Generating/ChunkDesc.h
@@ -222,6 +222,10 @@ public:
inline cEntityList & GetEntities (void) { return m_Entities; }
inline cBlockEntities & GetBlockEntities (void) { return m_BlockEntities; }
+ inline const cChunkDef::BiomeMap & GetBiomeMap() const { return m_BiomeMap; }
+ inline const cChunkDef::BlockTypes & GetBlockTypes() const { return *(reinterpret_cast<cChunkDef::BlockTypes *>(m_BlockArea.GetBlockTypes())); }
+ inline const cChunkDef::HeightMap & GetHeightMap() const { return m_HeightMap; }
+
/** Compresses the metas from the BlockArea format (1 meta per byte) into regular format (2 metas per byte) */
void CompressBlockMetas(cChunkDef::BlockNibbles & a_DestMetas);