cn.nukkit.level.biome.impl.forest.FlowerForestBiome Maven / Gradle / Ivy
package cn.nukkit.level.biome.impl.forest;
import cn.nukkit.block.BlockDoublePlant;
import cn.nukkit.block.BlockFlower;
import cn.nukkit.level.generator.populator.impl.PopulatorFlower;
/**
* @author DaPorkchop_ (Nukkit Project)
*/
public class FlowerForestBiome extends ForestBiome {
public FlowerForestBiome() {
this(TYPE_NORMAL);
}
public FlowerForestBiome(int type) {
super(type);
//see https://minecraft.gamepedia.com/Flower#Flower_biomes
PopulatorFlower flower = new PopulatorFlower();
flower.setBaseAmount(10);
flower.addType(DANDELION, 0);
flower.addType(RED_FLOWER, BlockFlower.TYPE_POPPY);
flower.addType(RED_FLOWER, BlockFlower.TYPE_ALLIUM);
flower.addType(RED_FLOWER, BlockFlower.TYPE_AZURE_BLUET);
flower.addType(RED_FLOWER, BlockFlower.TYPE_RED_TULIP);
flower.addType(RED_FLOWER, BlockFlower.TYPE_ORANGE_TULIP);
flower.addType(RED_FLOWER, BlockFlower.TYPE_WHITE_TULIP);
flower.addType(RED_FLOWER, BlockFlower.TYPE_PINK_TULIP);
flower.addType(RED_FLOWER, BlockFlower.TYPE_OXEYE_DAISY);
flower.addType(RED_FLOWER, BlockFlower.TYPE_CORNFLOWER);
flower.addType(RED_FLOWER, BlockFlower.TYPE_LILY_OF_THE_VALLEY);
flower.addType(DOUBLE_PLANT, BlockDoublePlant.LILAC);
flower.addType(DOUBLE_PLANT, BlockDoublePlant.ROSE_BUSH);
flower.addType(DOUBLE_PLANT, BlockDoublePlant.PEONY);
this.addPopulator(flower);
this.setHeightVariation(0.4f);
}
@Override
public String getName() {
return this.type == TYPE_BIRCH ? "Birch Forest" : "Forest";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy