mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-06 06:43:36 +00:00
25 lines
723 B
C++
25 lines
723 B
C++
#include "TaigaBiome.h"
|
|
|
|
#include <vector>
|
|
|
|
#include "java/Class.h"
|
|
#include "java/Random.h"
|
|
#include "minecraft/world/level/biome/Biome.h"
|
|
#include "minecraft/world/level/biome/BiomeDecorator.h"
|
|
#include "minecraft/world/level/levelgen/feature/PineFeature.h"
|
|
#include "minecraft/world/level/levelgen/feature/SpruceFeature.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);
|
|
} |