From f7df8e133b66aafcf35f0590a0ac525a7d2f9278 Mon Sep 17 00:00:00 2001
From: STRWarrior
Date: Mon, 31 Mar 2014 19:58:19 +0200
Subject: Documented msDifference
---
MCServer/Plugins/APIDump/APIDesc.lua | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
(limited to 'MCServer/Plugins/APIDump/APIDesc.lua')
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index 6f8a14421..532b4b665 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -230,22 +230,22 @@ g_APIDesc =
- area block | result |
+ area block | result |
- this | Src | msOverwrite | msFillAir | msImprint |
+ this | Src | msOverwrite | msFillAir | msImprint | msDifference |
- air | air | air | air | air |
+ air | air | air | air | air | air |
- A | air | air | A | A |
+ A | air | air | A | A | air |
- air | B | B | B | B |
+ air | B | B | B | B | B |
- A | B | B | A | B |
+ A | B | B | A | B | B |
@@ -255,6 +255,8 @@ g_APIDesc =
msOverwrite completely overwrites all blocks with the Src's blocks
msFillAir overwrites only those blocks that were air
msImprint overwrites with only those blocks that are non-air
+ msSpongePrint Sponge overwrites nothing, everything else overwrites anything
+ msDifference changes all the blocks wich are the same to air. Otherwise the source block gets placed.
--
cgit v1.2.3
From a8bc27f8728a0c1f222871cbd3f5534646e59085 Mon Sep 17 00:00:00 2001
From: STRWarrior
Date: Mon, 31 Mar 2014 20:05:48 +0200
Subject: Fixed typo
---
MCServer/Plugins/APIDump/APIDesc.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'MCServer/Plugins/APIDump/APIDesc.lua')
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index 532b4b665..1b020501c 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -256,7 +256,7 @@ g_APIDesc =
msFillAir overwrites only those blocks that were air
msImprint overwrites with only those blocks that are non-air
msSpongePrint Sponge overwrites nothing, everything else overwrites anything
- msDifference changes all the blocks wich are the same to air. Otherwise the source block gets placed.
+ msDifference changes all the blocks which are the same to air. Otherwise the source block gets placed.
--
cgit v1.2.3
From b19022fc7ea4cb6bd1bc6f4b212478e65b5fa5a1 Mon Sep 17 00:00:00 2001
From: STRWarrior
Date: Mon, 31 Mar 2014 20:13:08 +0200
Subject: Added extra table which should make it more clear what msDifference
does.
---
MCServer/Plugins/APIDump/APIDesc.lua | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'MCServer/Plugins/APIDump/APIDesc.lua')
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index 1b020501c..657ac6aa6 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -247,6 +247,9 @@ g_APIDesc =
A | B | B | A | B | B |
+
+ A | A | A | A | B | air |
+
@@ -255,7 +258,6 @@ g_APIDesc =
msOverwrite completely overwrites all blocks with the Src's blocks
msFillAir overwrites only those blocks that were air
msImprint overwrites with only those blocks that are non-air
- msSpongePrint Sponge overwrites nothing, everything else overwrites anything
msDifference changes all the blocks which are the same to air. Otherwise the source block gets placed.
--
cgit v1.2.3
From 21e0607e49745f0a431fa045967cc45679ab22de Mon Sep 17 00:00:00 2001
From: STRWarrior
Date: Tue, 1 Apr 2014 21:12:48 +0200
Subject: APIDump: Gave msDifference it's own table.
---
MCServer/Plugins/APIDump/APIDesc.lua | 30 +++++++++++++++++++++---------
1 file changed, 21 insertions(+), 9 deletions(-)
(limited to 'MCServer/Plugins/APIDump/APIDesc.lua')
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index 657ac6aa6..b01be6118 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -230,25 +230,25 @@ g_APIDesc =
- area block | result |
+ area block | result |
- this | Src | msOverwrite | msFillAir | msImprint | msDifference |
+ this | Src | msOverwrite | msFillAir | msImprint |
- air | air | air | air | air | air |
+ air | air | air | air | air |
- A | air | air | A | A | air |
+ A | air | air | A | A |
- air | B | B | B | B | B |
+ air | B | B | B | B |
- A | B | B | A | B | B |
+ A | B | B | A | B |
- A | A | A | A | B | air |
+ A | A | A | A | A |
@@ -258,13 +258,25 @@ g_APIDesc =
msOverwrite completely overwrites all blocks with the Src's blocks
msFillAir overwrites only those blocks that were air
msImprint overwrites with only those blocks that are non-air
- msDifference changes all the blocks which are the same to air. Otherwise the source block gets placed.
Special strategies
For each strategy, evaluate the table rows from top downwards, the first match wins.
-
+
+
+ msDifference - changes all the blocks which are the same to air. Otherwise the source block gets placed.
+
+
+ area block | | Notes |
+
+ * | B | B | The blocks are different so we use block B |
+
+ B | B | Air | The blocks are the same so we get air. |
+
+
+
+
msLake - used for merging areas with lava and water lakes, in the appropriate generator.
--
cgit v1.2.3