summaryrefslogtreecommitdiffstats
path: root/src/BlockArea.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-25 22:05:45 +0100
committermadmaxoft <github@xoft.cz>2014-03-25 22:05:45 +0100
commit87de5960785e0e007eaee0a8dbb77c64e20e7c8c (patch)
treec34ff9e51317d3990ef3188de4286c579578bf67 /src/BlockArea.h
parentBlockArea: Switched internal coords to Vector3i. (diff)
downloadcuberite-87de5960785e0e007eaee0a8dbb77c64e20e7c8c.tar
cuberite-87de5960785e0e007eaee0a8dbb77c64e20e7c8c.tar.gz
cuberite-87de5960785e0e007eaee0a8dbb77c64e20e7c8c.tar.bz2
cuberite-87de5960785e0e007eaee0a8dbb77c64e20e7c8c.tar.lz
cuberite-87de5960785e0e007eaee0a8dbb77c64e20e7c8c.tar.xz
cuberite-87de5960785e0e007eaee0a8dbb77c64e20e7c8c.tar.zst
cuberite-87de5960785e0e007eaee0a8dbb77c64e20e7c8c.zip
Diffstat (limited to 'src/BlockArea.h')
-rw-r--r--src/BlockArea.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/BlockArea.h b/src/BlockArea.h
index 22d55e2c9..d28325d7d 100644
--- a/src/BlockArea.h
+++ b/src/BlockArea.h
@@ -59,12 +59,18 @@ public:
/** Clears the data stored to reclaim memory */
void Clear(void);
- /** Creates a new area of the specified size and contents.
- Origin is set to all zeroes.
+ /** Creates a new area of the specified size and contents.
+ Origin is set to all zeroes.
BlockTypes are set to air, block metas to zero, blocklights to zero and skylights to full light.
*/
void Create(int a_SizeX, int a_SizeY, int a_SizeZ, int a_DataTypes = baTypes | baMetas);
+ /** Creates a new area of the specified size and contents.
+ Origin is set to all zeroes.
+ BlockTypes are set to air, block metas to zero, blocklights to zero and skylights to full light.
+ */
+ void Create(const Vector3i & a_Size, int a_DataTypes = baTypes | baMetas);
+
/** Resets the origin. No other changes are made, contents are untouched. */
void SetOrigin(int a_OriginX, int a_OriginY, int a_OriginZ);