summaryrefslogtreecommitdiff
path: root/ihl/worldgen/WorldGeneratorVein.java
diff options
context:
space:
mode:
authorFoghrye4 <foghrye4@gmail.com>2017-06-17 08:12:18 +0300
committerFoghrye4 <foghrye4@gmail.com>2017-06-17 08:12:18 +0300
commitdc3df3edd5843bde0c1335d6a8e460b2c832aa48 (patch)
treeaf13bfeee567f2351e35e1ef176d168fe37c8aac /ihl/worldgen/WorldGeneratorVein.java
parent1da8dcd58647e34c9af94ceeecaeaf3b0d08c48c (diff)
full project files
Diffstat (limited to 'ihl/worldgen/WorldGeneratorVein.java')
-rw-r--r--ihl/worldgen/WorldGeneratorVein.java26
1 files changed, 0 insertions, 26 deletions
diff --git a/ihl/worldgen/WorldGeneratorVein.java b/ihl/worldgen/WorldGeneratorVein.java
deleted file mode 100644
index 3be74e0..0000000
--- a/ihl/worldgen/WorldGeneratorVein.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package ihl.worldgen;
-
-import ihl.utils.IHLMathUtils;
-import net.minecraft.block.Block;
-import net.minecraft.world.World;
-
-public class WorldGeneratorVein extends WorldGeneratorBase {
-
- public WorldGeneratorVein(Block oreIn, Block[] replaceableBlocksIn) {
- super(oreIn, replaceableBlocksIn);
- }
-
- @Override
- protected void replaceBlocks(World world, int[] centralPOI, int[] surroundPOI, int startX, int startZ) {
- int x = centralPOI[0], y = centralPOI[1], z = centralPOI[2];
- while (x < 16 && x >= 0 && y >= 0 && y < world.getActualHeight() && z >= 0 && z < 16) {
- this.replace(world, x + startX, y, z + startZ, ore);
- x += IHLMathUtils.sign(surroundPOI[0] - x);
- y += IHLMathUtils.sign(surroundPOI[1] - y);
- z += IHLMathUtils.sign(surroundPOI[2] - z);
- if (IHLMathUtils.sign(surroundPOI[0] - x) == 0 && IHLMathUtils.sign(surroundPOI[1] - y) == 0
- && IHLMathUtils.sign(surroundPOI[2] - z) == 0)
- break;
- }
- }
-}