BiomesOPlenty/src/minecraft/biomesoplenty/biomes/BiomeGenNetherGarden.java

50 lines
1.9 KiB
Java
Raw Normal View History

package biomesoplenty.biomes;
import java.util.Random;
2013-05-18 22:23:21 +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;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.SpawnListEntry;
import net.minecraft.world.gen.feature.WorldGenerator;
import biomesoplenty.worldgen.WorldGenNetherMushroom;
public class BiomeGenNetherGarden extends BiomeGenBase
{
private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenNetherGarden(int par1)
{
super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
2013-05-18 22:23:21 +00:00
this.topBlock = (byte)Block.netherrack.blockID;
this.fillerBlock = (byte)Block.netherrack.blockID;
2013-05-21 00:49:30 +00:00
this.customBiomeDecorator.treesPerChunk = 80;
this.customBiomeDecorator.netherVinesPerChunk = 60;
this.customBiomeDecorator.mushroomsPerChunk = 30;
this.customBiomeDecorator.bigMushroomsPerChunk = 30;
2013-05-18 22:23:21 +00:00
this.customBiomeDecorator.netherWartPerChunk = 3;
2013-05-21 20:35:04 +00:00
this.customBiomeDecorator.netherGrassPerChunk = 10;
this.customBiomeDecorator.glowshroomsPerChunk = 3;
this.customBiomeDecorator.toadstoolsPerChunk = 5;
this.spawnableMonsterList.clear();
this.spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear();
this.spawnableCaveCreatureList.clear();
this.spawnableMonsterList.add(new SpawnListEntry(EntityGhast.class, 50, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityPigZombie.class, 100, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityMagmaCube.class, 1, 4, 4));
}
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
2013-05-21 00:49:30 +00:00
return new WorldGenNetherMushroom();
}
}