summaryrefslogtreecommitdiffstats
path: root/src/BlockArea.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-28 18:03:37 +0100
committermadmaxoft <github@xoft.cz>2014-03-28 18:03:37 +0100
commit8557549cfac260867112be96e24b2c0e059db47e (patch)
treef818ce92a9ed4773d7166a9d0f24c0db0f77beef /src/BlockArea.h
parentNetherFort: Added BalconyTee2 prefab. (diff)
downloadcuberite-8557549cfac260867112be96e24b2c0e059db47e.tar
cuberite-8557549cfac260867112be96e24b2c0e059db47e.tar.gz
cuberite-8557549cfac260867112be96e24b2c0e059db47e.tar.bz2
cuberite-8557549cfac260867112be96e24b2c0e059db47e.tar.lz
cuberite-8557549cfac260867112be96e24b2c0e059db47e.tar.xz
cuberite-8557549cfac260867112be96e24b2c0e059db47e.tar.zst
cuberite-8557549cfac260867112be96e24b2c0e059db47e.zip
Diffstat (limited to 'src/BlockArea.h')
-rw-r--r--src/BlockArea.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/BlockArea.h b/src/BlockArea.h
index d28325d7d..d37f0d182 100644
--- a/src/BlockArea.h
+++ b/src/BlockArea.h
@@ -51,6 +51,7 @@ public:
msFillAir,
msImprint,
msLake,
+ msSpongePrint,
} ;
cBlockArea(void);
@@ -127,8 +128,8 @@ public:
- msFillAir overwrites only those blocks that were air
- msImprint overwrites with only those blocks that are non-air
- Special strategies:
- msLake (evaluate top-down, first match wins):
+ Special strategies (evaluate top-down, first match wins):
+ msLake:
| area block | |
| this | Src | result |
+----------+--------+--------+
@@ -143,6 +144,14 @@ public:
| mycelium | stone | stone | ... and mycelium
| A | stone | A | ... but nothing else
| A | * | A | Everything else is left as it is
+
+ msSpongePrint:
+ Used for most generators, it allows carving out air pockets, too, and uses the Sponge as the NOP block
+ | area block | |
+ | this | Src | result |
+ +----------+--------+--------+
+ | A | sponge | A | Sponge is the NOP block
+ | * | B | B | Everything else overwrites anything
*/
void Merge(const cBlockArea & a_Src, int a_RelX, int a_RelY, int a_RelZ, eMergeStrategy a_Strategy);