summaryrefslogtreecommitdiffstats
path: root/src/BlockArea.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-04-29 15:45:48 +0200
committerMattes D <github@xoft.cz>2015-04-29 15:45:48 +0200
commitca90f6d280487568b0c02d75e9e92d9335c1e43f (patch)
tree541a8923a8d031a84f304eb446663f882a9283f8 /src/BlockArea.h
parentAdded cBlockArea:GetNonAirCropRelCoords() API function. (diff)
downloadcuberite-ca90f6d280487568b0c02d75e9e92d9335c1e43f.tar
cuberite-ca90f6d280487568b0c02d75e9e92d9335c1e43f.tar.gz
cuberite-ca90f6d280487568b0c02d75e9e92d9335c1e43f.tar.bz2
cuberite-ca90f6d280487568b0c02d75e9e92d9335c1e43f.tar.lz
cuberite-ca90f6d280487568b0c02d75e9e92d9335c1e43f.tar.xz
cuberite-ca90f6d280487568b0c02d75e9e92d9335c1e43f.tar.zst
cuberite-ca90f6d280487568b0c02d75e9e92d9335c1e43f.zip
Diffstat (limited to '')
-rw-r--r--src/BlockArea.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/BlockArea.h b/src/BlockArea.h
index 6b8b30443..ce417ceb4 100644
--- a/src/BlockArea.h
+++ b/src/BlockArea.h
@@ -54,6 +54,7 @@ public:
msLake,
msSpongePrint,
msDifference,
+ msSimpleCompare,
msMask,
} ;
@@ -156,6 +157,22 @@ public:
| A | sponge | A | Sponge is the NOP block
| * | B | B | Everything else overwrites anything
+ msDifference:
+ Used to determine the differences between two areas. Only the differring blocks are preserved:
+ | area block | |
+ | this | Src | result |
+ +------+-------+--------+
+ | A | A | air | Same blocks are replaced with air
+ | A | non-A | A | Differring blocks are kept from "this"
+
+ msSimpleCompare:
+ Used to determine the differences between two areas. Blocks that differ are replaced with stone, same blocks are replaced with air
+ | area block | |
+ | this | Src | result |
+ +------+-------+--------+
+ | A | A | air | Same blocks are replaced with air
+ | A | non-A | stone | Differring blocks are replaced with stone
+
msMask:
Combines two areas, the blocks that are the same are kept, differing ones are reset to air
| area block | |