BetterGen/src/Ad5001/BetterGen/biome/BetterIcePlains.php

50 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2017-04-23 14:42:51 +00:00
<?php
/*
* BetterIcePlains from BetterGen
* Copyright (C) Ad5001 2017
* Licensed under the BoxOfDevs Public General LICENSE which can be found in the file LICENSE in the root directory
* @author ad5001
*/
namespace Ad5001\BetterGen\biome;
use pocketmine\level\generator\normal\biome\SnowyBiome;
use pocketmine\level\generator\biome\Biome;
use pocketmine\block\Block;
use Ad5001\BetterGen\populator\IglooPopulator;
use Ad5001\BetterGen\Main;
2017-04-23 14:42:51 +00:00
class BetterIcePlains extends SnowyBiome implements Mountainable {
public function __construct() {
parent::__construct ();
2017-04-29 09:59:44 +00:00
$this->setGroundCover([
Block::get(Block::SNOW, 0 ),
Block::get(Block::GRASS, 0 ),
Block::get(Block::DIRT, 0 ),
Block::get(Block::DIRT, 0 ),
Block::get(Block::DIRT, 0 )
]);
$this->addPopulator(new IglooPopulator ());
$tallGrass = Main::isOtherNS() ? new \pocketmine\level\generator\normal\populator\TallGrass() : new \pocketmine\level\generator\populator\TallGrass();
2017-04-29 09:59:44 +00:00
$tallGrass->setBaseAmount(3);
2017-04-23 14:42:51 +00:00
2017-04-29 09:59:44 +00:00
$this->addPopulator($tallGrass);
2017-04-23 14:42:51 +00:00
2017-04-29 09:59:44 +00:00
$this->setElevation(63, 74);
2017-04-23 14:42:51 +00:00
$this->temperature = 0.05;
$this->rainfall = 0.8;
}
public function getName() {
return "Better Ice Plains";
}
/*
* Returns biome's id.
*/
public function getId() {
return Biome::ICE_PLAINS;
}
}