mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-25 14:44:35 +00:00
1 parent
7be5379b59
commit
48a66e6e9e
7 files changed
+110
-134
No files matched your search
@@ -1,39 +0,0 @@
|
||||
package com.cricketcraft.chisel.world;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
import net.minecraft.world.gen.feature.WorldGenMinable;
|
||||
import cpw.mods.fml.common.IWorldGenerator;
|
||||
|
||||
public class GeneratorLimestone implements IWorldGenerator
|
||||
{
|
||||
WorldGenMinable gen;
|
||||
int amount;
|
||||
|
||||
public GeneratorLimestone(Block block, int count, int am)
|
||||
{
|
||||
gen = new WorldGenMinable(block, count);
|
||||
amount = am;
|
||||
}
|
||||
|
||||
protected void genStandardOre1(World world, Random random, int x, int z, int bot, int top)
|
||||
{
|
||||
for(int l = 0; l < amount; ++l)
|
||||
{
|
||||
int i1 = x + random.nextInt(15) - 1;
|
||||
int j1 = bot + random.nextInt(top - bot);
|
||||
int k1 = z + random.nextInt(15);
|
||||
gen.generate(world, random, i1, j1, k1);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
|
||||
{
|
||||
genStandardOre1(world, random, chunkX * 16, chunkZ * 16, 40, 128);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
package com.cricketcraft.chisel.world;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
import net.minecraft.world.gen.feature.WorldGenMinable;
|
||||
import cpw.mods.fml.common.IWorldGenerator;
|
||||
|
||||
public class GeneratorMarble implements IWorldGenerator
|
||||
{
|
||||
WorldGenMinable gen;
|
||||
int amount;
|
||||
|
||||
public GeneratorMarble(Block block, int count, int am)
|
||||
{
|
||||
gen = new WorldGenMinable(block, count);
|
||||
amount = am;
|
||||
}
|
||||
|
||||
protected void genStandardOre1(World world, Random random, int x, int z, int bot, int top)
|
||||
{
|
||||
for(int l = 0; l < amount; ++l)
|
||||
{
|
||||
int i1 = x + random.nextInt(16);
|
||||
int j1 = bot + random.nextInt(top - bot);
|
||||
int k1 = z + random.nextInt(16);
|
||||
gen.generate(world, random, i1, j1, k1);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
|
||||
{
|
||||
genStandardOre1(world, random, chunkX * 16, chunkZ * 16, 40, 128);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user