summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2014-05-29 13:04:37 +0200
committerworktycho <work.tycho@gmail.com>2014-05-29 13:04:37 +0200
commitd9c667d28f556e489b2779b7510f3b12034c3fad (patch)
tree7220d35dbeee16d2390b28c3453bfb8012df1101 /src
parentFixed forgotten changes. (diff)
downloadcuberite-d9c667d28f556e489b2779b7510f3b12034c3fad.tar
cuberite-d9c667d28f556e489b2779b7510f3b12034c3fad.tar.gz
cuberite-d9c667d28f556e489b2779b7510f3b12034c3fad.tar.bz2
cuberite-d9c667d28f556e489b2779b7510f3b12034c3fad.tar.lz
cuberite-d9c667d28f556e489b2779b7510f3b12034c3fad.tar.xz
cuberite-d9c667d28f556e489b2779b7510f3b12034c3fad.tar.zst
cuberite-d9c667d28f556e489b2779b7510f3b12034c3fad.zip
Diffstat (limited to 'src')
-rw-r--r--src/ChunkData.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ChunkData.h b/src/ChunkData.h
index 09b2cb563..e6aaa99b8 100644
--- a/src/ChunkData.h
+++ b/src/ChunkData.h
@@ -44,6 +44,10 @@ public:
NIBBLETYPE GetSkyLight(int a_RelX, int a_RelY, int a_RelZ) const;
cChunkData Copy(void) const;
+
+ // Copys data from this object into the buffer in the a_Dest param
+ // CopyBlocks also povides the optional parameters a_Idx and a_Length which specify an offset and length for
+ // copying part of the BlockTypes array.
void CopyBlocks (BLOCKTYPE * a_Dest, size_t a_Idx = 0, size_t a_Length = cChunkDef::NumBlocks) const;
void CopyMeta (NIBBLETYPE * a_Dest) const;
void CopyBlockLight(NIBBLETYPE * a_Dest) const;