mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-06 17:27:12 +00:00
15 lines
466 B
C++
15 lines
466 B
C++
#include "RainforestBiome.h"
|
|
|
|
#include "java/Random.h"
|
|
#include "minecraft/world/level/biome/Biome.h"
|
|
#include "minecraft/world/level/levelgen/feature/BasicTreeFeature.h"
|
|
#include "minecraft/world/level/levelgen/feature/TreeFeature.h"
|
|
|
|
RainforestBiome::RainforestBiome(int id) : Biome(id) {}
|
|
|
|
Feature* RainforestBiome::getTreeFeature(Random* random) {
|
|
if (random->nextInt(3) == 0) {
|
|
return new BasicTree(false);
|
|
}
|
|
return new TreeFeature(false);
|
|
} |