mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
added missing @var property types (reported by phpstan)
This commit is contained in:
@ -30,6 +30,7 @@ use pocketmine\utils\Random;
|
||||
|
||||
class BirchTree extends Tree{
|
||||
|
||||
/** @var bool */
|
||||
protected $superBirch = false;
|
||||
|
||||
public function __construct(bool $superBirch = false){
|
||||
|
@ -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){
|
||||
|
@ -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){
|
||||
|
Reference in New Issue
Block a user