BiomesOPlenty/common/biomesoplenty/helpers/WorldGeneratorPromisedLandPortal.java

34 lines
982 B
Java
Raw Normal View History

2013-05-03 13:00:44 +00:00
package biomesoplenty.helpers;
import java.util.Random;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import biomesoplenty.worldgen.WorldGenPromisedLandPortal;
2013-05-03 13:00:44 +00:00
import cpw.mods.fml.common.IWorldGenerator;
2013-05-31 10:34:02 +00:00
public class WorldGeneratorPromisedLandPortal implements IWorldGenerator
2013-05-03 13:00:44 +00:00
{
2013-05-31 10:34:02 +00:00
@Override
2013-05-03 13:00:44 +00:00
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
{
switch (world.provider.dimensionId)
{
2013-05-31 10:34:02 +00:00
case 20: generatePromisedLand(world, random, chunkX*16, chunkZ*16);
case 0: generateSurface(world, random, chunkX*16, chunkZ*16);
2013-05-03 13:00:44 +00:00
}
}
2013-05-31 10:34:02 +00:00
private void generateSurface(World world, Random random, int blockX, int blockZ)
2013-05-03 13:00:44 +00:00
{
(new WorldGenPromisedLandPortal()).generate(world, random, 0, 64, 0);
}
2013-05-31 10:34:02 +00:00
private void generatePromisedLand(World world, Random random, int blockX, int blockZ)
2013-05-03 13:00:44 +00:00
{
(new WorldGenPromisedLandPortal()).generate(world, random, 0, 64, 0);
}
}