mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
More typehints, documentation fixes and static analysis cleanup
This commit is contained in:
@ -65,8 +65,11 @@ abstract class Biome{
|
||||
/** @var Biome[] */
|
||||
private static $biomes = [];
|
||||
|
||||
/** @var int */
|
||||
private $id;
|
||||
/** @var bool */
|
||||
private $registered = false;
|
||||
|
||||
/** @var Populator[] */
|
||||
private $populators = [];
|
||||
|
||||
@ -75,9 +78,12 @@ abstract class Biome{
|
||||
/** @var int */
|
||||
private $maxElevation;
|
||||
|
||||
/** @var Block[] */
|
||||
private $groundCover = [];
|
||||
|
||||
/** @var float */
|
||||
protected $rainfall = 0.5;
|
||||
/** @var float */
|
||||
protected $temperature = 0.5;
|
||||
|
||||
protected static function register(int $id, Biome $biome){
|
||||
|
@ -39,8 +39,10 @@ class BiomeSelector{
|
||||
/** @var Biome[] */
|
||||
private $biomes = [];
|
||||
|
||||
private $map = [];
|
||||
/** @var \SplFixedArray */
|
||||
private $map = null;
|
||||
|
||||
/** @var callable */
|
||||
private $lookup;
|
||||
|
||||
public function __construct(Random $random, callable $lookup, Biome $fallback){
|
||||
|
Reference in New Issue
Block a user