aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/TaigaBiome.cpp
blob: 7a9cc105b9842e0d7f9d43c45a51b4a346a70a7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "stdafx.h"
#include "TaigaBiome.h"
#include "net.minecraft.world.entity.animal.h"
#include "net.minecraft.world.level.levelgen.feature.h"
#include "net.minecraft.world.level.biome.h"

TaigaBiome::TaigaBiome(int id) : Biome(id)
{
	friendlies_wolf.push_back(new MobSpawnerData(eTYPE_WOLF, 8, 4, 4));	// 4J - moved to their own category

    decorator->treeCount = 10;
    decorator->grassCount = 1;
}

Feature *TaigaBiome::getTreeFeature(Random *random)
{
	if (random->nextInt(3) == 0)
	{
		return new PineFeature();
	}
	return new SpruceFeature(false);
}