added missing @var property types (reported by phpstan)

This commit is contained in:
Dylan K. Taylor
2020-01-09 14:13:54 +00:00
parent cda3e6f4dc
commit 1eedac87b2
63 changed files with 190 additions and 1 deletions

View File

@ -30,6 +30,7 @@ use pocketmine\utils\Random;
class BirchTree extends Tree{
/** @var bool */
protected $superBirch = false;
public function __construct(bool $superBirch = false){

View File

@ -29,7 +29,9 @@ use pocketmine\math\Vector3;
use pocketmine\utils\Random;
class Pond{
/** @var Random */
private $random;
/** @var Block */
public $type;
public function __construct(Random $random, Block $type){

View File

@ -31,6 +31,7 @@ use pocketmine\utils\Random;
use function abs;
abstract class Tree{
/** @var bool[] */
public $overridable = [
Block::AIR => true,
Block::SAPLING => true,
@ -39,9 +40,13 @@ abstract class Tree{
Block::LEAVES2 => true
];
/** @var int */
public $type = 0;
/** @var int */
public $trunkBlock = Block::LOG;
/** @var int */
public $leafBlock = Block::LEAVES;
/** @var int */
public $treeHeight = 7;
public static function growTree(ChunkManager $level, int $x, int $y, int $z, Random $random, int $type = 0){