001 package net.minecraft.world.biome; 002 003 import java.util.Random; 004 import net.minecraft.entity.passive.EntityWolf; 005 import net.minecraft.world.gen.feature.WorldGenerator; 006 007 public class BiomeGenForest extends BiomeGenBase 008 { 009 public BiomeGenForest(int par1) 010 { 011 super(par1); 012 this.spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 5, 4, 4)); 013 this.theBiomeDecorator.treesPerChunk = 10; 014 this.theBiomeDecorator.grassPerChunk = 2; 015 } 016 017 /** 018 * Gets a WorldGen appropriate for this biome. 019 */ 020 public WorldGenerator getRandomWorldGenForTrees(Random par1Random) 021 { 022 return (WorldGenerator)(par1Random.nextInt(5) == 0 ? this.worldGeneratorForest : (par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : this.worldGeneratorTrees)); 023 } 024 }