mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
More typehints, documentation fixes and static analysis cleanup
This commit is contained in:
@ -32,14 +32,14 @@ class BirchTree extends Tree{
|
||||
|
||||
protected $superBirch = false;
|
||||
|
||||
public function __construct($superBirch = false){
|
||||
public function __construct(bool $superBirch = false){
|
||||
$this->trunkBlock = Block::LOG;
|
||||
$this->leafBlock = Block::LEAVES;
|
||||
$this->type = Wood::BIRCH;
|
||||
$this->superBirch = (bool) $superBirch;
|
||||
$this->superBirch = $superBirch;
|
||||
}
|
||||
|
||||
public function placeObject(ChunkManager $level, $x, $y, $z, Random $random){
|
||||
public function placeObject(ChunkManager $level, int $x, int $y, int $z, Random $random){
|
||||
$this->treeHeight = $random->nextBoundedInt(3) + 5;
|
||||
if($this->superBirch){
|
||||
$this->treeHeight += 5;
|
||||
|
Reference in New Issue
Block a user