forked from Kolyah35/minecraft-pe-0.6.1
the whole game
This commit is contained in:
24
src/world/level/biome/ForestBiome.h
Executable file
24
src/world/level/biome/ForestBiome.h
Executable file
@@ -0,0 +1,24 @@
|
||||
#ifndef NET_MINECRAFT_WORLD_LEVEL_BIOME__ForestBiome_H__
|
||||
#define NET_MINECRAFT_WORLD_LEVEL_BIOME__ForestBiome_H__
|
||||
|
||||
//package net.minecraft.world.level.biome;
|
||||
|
||||
#include "Biome.h"
|
||||
#include "../levelgen/feature/TreeFeature.h"
|
||||
#include "../levelgen/feature/BirchFeature.h"
|
||||
|
||||
class ForestBiome: public Biome
|
||||
{
|
||||
public:
|
||||
Feature* getTreeFeature(Random* random) {
|
||||
if (random->nextInt(5) == 0) {
|
||||
return new BirchFeature();
|
||||
}
|
||||
if (random->nextInt(3) == 0) {
|
||||
//return new BasicTree();
|
||||
}
|
||||
return new TreeFeature(false);
|
||||
}
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_WORLD_LEVEL_BIOME__ForestBiome_H__*/
|
||||
Reference in New Issue
Block a user