summaryrefslogtreecommitdiffstats
path: root/src/BlockArea.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-30 19:17:33 +0200
committermadmaxoft <github@xoft.cz>2014-03-30 19:17:33 +0200
commit1bda9b042403bbc20c564a582435a083fc4dcc84 (patch)
tree8210ebddd8925889c31d3b4fb77e813b3aea6ec1 /src/BlockArea.h
parentAPIDump: Added article: Setting up ZeroBrane Studio. (diff)
parentAdded all current NetherFort prefabs. (diff)
downloadcuberite-1bda9b042403bbc20c564a582435a083fc4dcc84.tar
cuberite-1bda9b042403bbc20c564a582435a083fc4dcc84.tar.gz
cuberite-1bda9b042403bbc20c564a582435a083fc4dcc84.tar.bz2
cuberite-1bda9b042403bbc20c564a582435a083fc4dcc84.tar.lz
cuberite-1bda9b042403bbc20c564a582435a083fc4dcc84.tar.xz
cuberite-1bda9b042403bbc20c564a582435a083fc4dcc84.tar.zst
cuberite-1bda9b042403bbc20c564a582435a083fc4dcc84.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);