2013-05-24 14:36:00 +00:00
|
|
|
package biomesoplenty.biomes;
|
|
|
|
|
2013-09-07 15:22:54 +00:00
|
|
|
import java.util.Random;
|
|
|
|
|
|
|
|
import biomesoplenty.worldgen.WorldGenGrave;
|
2013-05-24 14:36:00 +00:00
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.entity.monster.EntityGhast;
|
|
|
|
import net.minecraft.entity.monster.EntityMagmaCube;
|
|
|
|
import net.minecraft.entity.monster.EntityPigZombie;
|
2013-09-07 15:22:54 +00:00
|
|
|
import net.minecraft.world.World;
|
2013-05-29 01:05:27 +00:00
|
|
|
import net.minecraft.world.biome.BiomeGenBase;
|
|
|
|
import net.minecraft.world.biome.SpawnListEntry;
|
2013-05-24 14:36:00 +00:00
|
|
|
|
|
|
|
public class BiomeGenNetherBase extends BiomeGenBase
|
|
|
|
{
|
|
|
|
private BiomeDecoratorBOP customBiomeDecorator;
|
2013-05-31 10:34:02 +00:00
|
|
|
|
|
|
|
public BiomeGenNetherBase(int par1)
|
|
|
|
{
|
|
|
|
super(par1);
|
|
|
|
theBiomeDecorator = new BiomeDecoratorBOP(this);
|
|
|
|
customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
|
|
|
|
topBlock = (byte)Block.netherrack.blockID;
|
|
|
|
fillerBlock = (byte)Block.netherrack.blockID;
|
|
|
|
spawnableMonsterList.clear();
|
|
|
|
spawnableCreatureList.clear();
|
|
|
|
spawnableWaterCreatureList.clear();
|
|
|
|
spawnableCaveCreatureList.clear();
|
|
|
|
spawnableMonsterList.add(new SpawnListEntry(EntityGhast.class, 50, 4, 4));
|
|
|
|
spawnableMonsterList.add(new SpawnListEntry(EntityPigZombie.class, 100, 4, 4));
|
|
|
|
spawnableMonsterList.add(new SpawnListEntry(EntityMagmaCube.class, 1, 4, 4));
|
|
|
|
}
|
2013-09-07 15:22:54 +00:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void decorate(World par1World, Random par2Random, int par3, int par4)
|
|
|
|
{
|
|
|
|
super.decorate(par1World, par2Random, par3, par4);
|
|
|
|
|
|
|
|
if (par2Random.nextInt(15) == 0)
|
|
|
|
{
|
|
|
|
int var5 = par3 + par2Random.nextInt(16) + 8;
|
|
|
|
int var6 = par4 + par2Random.nextInt(16) + 8;
|
|
|
|
WorldGenGrave var7 = new WorldGenGrave();
|
|
|
|
var7.generate(par1World, par2Random, var5, par1World.getHeightValue(var5, var6) + 1, var6);
|
|
|
|
}
|
|
|
|
}
|
2013-05-24 14:36:00 +00:00
|
|
|
}
|