summaryrefslogtreecommitdiffstats
path: root/src/BlockArea.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-01-20 18:37:31 +0100
committerTycho <work.tycho+git@gmail.com>2014-01-20 18:37:31 +0100
commit613f238ab630d1cfb86e2dbdccb1e9cbf93539dd (patch)
tree304260643ecc3c99939c34621d7908fa3031dc33 /src/BlockArea.h
parentMerge branch 'master' into GeneratingBenchmark (diff)
parentSeperated BlockArea From World (diff)
downloadcuberite-613f238ab630d1cfb86e2dbdccb1e9cbf93539dd.tar
cuberite-613f238ab630d1cfb86e2dbdccb1e9cbf93539dd.tar.gz
cuberite-613f238ab630d1cfb86e2dbdccb1e9cbf93539dd.tar.bz2
cuberite-613f238ab630d1cfb86e2dbdccb1e9cbf93539dd.tar.lz
cuberite-613f238ab630d1cfb86e2dbdccb1e9cbf93539dd.tar.xz
cuberite-613f238ab630d1cfb86e2dbdccb1e9cbf93539dd.tar.zst
cuberite-613f238ab630d1cfb86e2dbdccb1e9cbf93539dd.zip
Diffstat (limited to 'src/BlockArea.h')
-rw-r--r--src/BlockArea.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/BlockArea.h b/src/BlockArea.h
index 075cc99ec..ae23c76c6 100644
--- a/src/BlockArea.h
+++ b/src/BlockArea.h
@@ -12,13 +12,10 @@
#pragma once
+#include "ForEachChunkProvider.h"
-
-// fwd: World.h
-class cWorld;
-
// fwd: FastNBT.h
class cParsedNBT;
@@ -68,13 +65,13 @@ public:
void SetOrigin(int a_OriginX, int a_OriginY, int a_OriginZ);
/// Reads an area of blocks specified. Returns true if successful. All coords are inclusive.
- bool Read(cWorld * a_World, int a_MinBlockX, int a_MaxBlockX, int a_MinBlockY, int a_MaxBlockY, int a_MinBlockZ, int a_MaxBlockZ, int a_DataTypes = baTypes | baMetas);
+ bool Read(cForEachChunkProvider * a_ForEachChunkProvider, int a_MinBlockX, int a_MaxBlockX, int a_MinBlockY, int a_MaxBlockY, int a_MinBlockZ, int a_MaxBlockZ, int a_DataTypes = baTypes | baMetas);
// TODO: Write() is not too good an interface: if it fails, there's no way to repeat only for the parts that didn't write
// A better way may be to return a list of cBlockAreas for each part that didn't succeed writing, so that the caller may try again
/// Writes the area back into cWorld at the coords specified. Returns true if successful in all chunks, false if only partially / not at all
- bool Write(cWorld * a_World, int a_MinBlockX, int a_MinBlockY, int a_MinBlockZ, int a_DataTypes = baTypes | baMetas);
+ bool Write(cForEachChunkProvider * a_ForEachChunkProvider, int a_MinBlockX, int a_MinBlockY, int a_MinBlockZ, int a_DataTypes = baTypes | baMetas);
/// Copies this object's contents into the specified BlockArea.
void CopyTo(cBlockArea & a_Into) const;