summaryrefslogtreecommitdiffstats
path: root/source/BlockArea.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-09 12:03:22 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-09 12:03:22 +0100
commitbda7c4ac13cf2ad621dee673a430cc43bb9e8e6b (patch)
tree8f7fc8d057e189010917e687840b2ace231d9b58 /source/BlockArea.h
parentAdded a few ignores (diff)
downloadcuberite-bda7c4ac13cf2ad621dee673a430cc43bb9e8e6b.tar
cuberite-bda7c4ac13cf2ad621dee673a430cc43bb9e8e6b.tar.gz
cuberite-bda7c4ac13cf2ad621dee673a430cc43bb9e8e6b.tar.bz2
cuberite-bda7c4ac13cf2ad621dee673a430cc43bb9e8e6b.tar.lz
cuberite-bda7c4ac13cf2ad621dee673a430cc43bb9e8e6b.tar.xz
cuberite-bda7c4ac13cf2ad621dee673a430cc43bb9e8e6b.tar.zst
cuberite-bda7c4ac13cf2ad621dee673a430cc43bb9e8e6b.zip
Diffstat (limited to '')
-rw-r--r--source/BlockArea.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/BlockArea.h b/source/BlockArea.h
index e01eade69..b1a2d9053 100644
--- a/source/BlockArea.h
+++ b/source/BlockArea.h
@@ -77,6 +77,9 @@ public:
/// Crops the internal contents by the specified amount of blocks from each border.
void Crop(int a_AddMinX, int a_SubMaxX, int a_AddMinY, int a_SubMaxY, int a_AddMinZ, int a_SubMaxZ);
+ /// Expands the internal contents by the specified amount of blocks from each border
+ void Expand(int a_SubMinX, int a_AddMaxX, int a_SubMinY, int a_AddMaxY, int a_SubMinZ, int a_AddMaxZ);
+
// Setters:
void SetRelBlockType (int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType);
void SetBlockType (int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType);
@@ -186,6 +189,10 @@ protected:
void CropBlockTypes(int a_AddMinX, int a_SubMaxX, int a_AddMinY, int a_SubMaxY, int a_AddMinZ, int a_SubMaxZ);
void CropNibbles (NIBBLEARRAY & a_Array, int a_AddMinX, int a_SubMaxX, int a_AddMinY, int a_SubMaxY, int a_AddMinZ, int a_SubMaxZ);
+ // Expand helpers:
+ void ExpandBlockTypes(int a_SubMinX, int a_AddMaxX, int a_SubMinY, int a_AddMaxY, int a_SubMinZ, int a_AddMaxZ);
+ void ExpandNibbles (NIBBLEARRAY & a_Array, int a_SubMinX, int a_AddMaxX, int a_SubMinY, int a_AddMaxY, int a_SubMinZ, int a_AddMaxZ);
+
/// Loads the area from a schematic file uncompressed and parsed into a NBT tree. Returns true if successful.
bool LoadFromSchematicNBT(cParsedNBT & a_NBT);