mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Modernize property declarations in src/world/*
This commit is contained in:
@ -32,21 +32,17 @@ abstract class Biome{
|
||||
|
||||
public const MAX_BIOMES = 256;
|
||||
|
||||
/** @var int */
|
||||
private $id;
|
||||
/** @var bool */
|
||||
private $registered = false;
|
||||
private int $id;
|
||||
private bool $registered = false;
|
||||
|
||||
/** @var Populator[] */
|
||||
private $populators = [];
|
||||
private array $populators = [];
|
||||
|
||||
/** @var int */
|
||||
private $minElevation;
|
||||
/** @var int */
|
||||
private $maxElevation;
|
||||
private int $minElevation;
|
||||
private int $maxElevation;
|
||||
|
||||
/** @var Block[] */
|
||||
private $groundCover = [];
|
||||
private array $groundCover = [];
|
||||
|
||||
/** @var float */
|
||||
protected $rainfall = 0.5;
|
||||
|
@ -34,7 +34,7 @@ final class BiomeRegistry{
|
||||
* @var Biome[]|\SplFixedArray
|
||||
* @phpstan-var \SplFixedArray<Biome>
|
||||
*/
|
||||
private $biomes;
|
||||
private \SplFixedArray $biomes;
|
||||
|
||||
public function __construct(){
|
||||
$this->biomes = new \SplFixedArray(Biome::MAX_BIOMES);
|
||||
|
@ -28,9 +28,7 @@ use pocketmine\world\generator\populator\TallGrass;
|
||||
use pocketmine\world\generator\populator\Tree;
|
||||
|
||||
class ForestBiome extends GrassyBiome{
|
||||
|
||||
/** @var TreeType */
|
||||
private $type;
|
||||
private TreeType $type;
|
||||
|
||||
public function __construct(?TreeType $type = null){
|
||||
parent::__construct();
|
||||
|
Reference in New Issue
Block a user