Inheritance: extends NormalBiome
コード例 #1
0
 public function __construct()
 {
     parent::__construct();
     $tallGrass = new TallGrass();
     $tallGrass->setBaseAmount(5);
     $this->addPopulator($tallGrass);
     $this->setElevation(63, 74);
     $this->temperature = 0.05;
     $this->rainfall = 0.8;
 }
コード例 #2
0
 public function __construct()
 {
     parent::__construct();
     $trees = new Tree(Sapling::SPRUCE);
     $trees->setBaseAmount(10);
     $this->addPopulator($trees);
     $tallGrass = new TallGrass();
     $tallGrass->setBaseAmount(1);
     $this->addPopulator($tallGrass);
     $this->setElevation(63, 81);
     $this->temperature = 0.05;
     $this->rainfall = 0.8;
 }
コード例 #3
0
ファイル: TaigaBiome.php プロジェクト: iTXTech/Genisys
 public function __construct()
 {
     parent::__construct();
     $trees = new Tree(Sapling::SPRUCE);
     $trees->setBaseAmount(10);
     $this->addPopulator($trees);
     $mossStone = new MossStone();
     $mossStone->setBaseAmount(1);
     $this->addPopulator($mossStone);
     $this->setElevation(63, 81);
     $this->temperature = 0.05;
     $this->rainfall = 0.8;
     $this->setGroundCover([Block::get(Block::PODZOL, 0), Block::get(Block::DIRT, 0), Block::get(Block::DIRT, 0), Block::get(Block::DIRT, 0)]);
 }