pocketmine\level\generator\normal\biome\ForestBiome::__construct PHP Метод

__construct() публичный Метод

public __construct ( $type = self::TYPE_NORMAL )
    public function __construct($type = self::TYPE_NORMAL)
    {
        parent::__construct();
        $this->type = $type;
        $trees = new Tree($type === self::TYPE_BIRCH ? Sapling::BIRCH : Sapling::OAK);
        $trees->setBaseAmount(5);
        $this->addPopulator($trees);
        $tallGrass = new TallGrass();
        $tallGrass->setBaseAmount(3);
        $this->addPopulator($tallGrass);
        $this->setElevation(63, 81);
        if ($type === self::TYPE_BIRCH) {
            $this->temperature = 0.5;
            $this->rainfall = 0.5;
        } else {
            $this->temperature = 0.7;
            $this->temperature = 0.8;
        }
    }