diff --git a/src/world/World.php b/src/world/World.php index 05135cb6b..5e5d6061d 100644 --- a/src/world/World.php +++ b/src/world/World.php @@ -949,6 +949,9 @@ class World implements ChunkManager{ } } + /** + * @return mixed[] + */ public function __debugInfo() : array{ return []; } diff --git a/src/world/format/io/WritableWorldProvider.php b/src/world/format/io/WritableWorldProvider.php index ca0069bd8..95a11f704 100644 --- a/src/world/format/io/WritableWorldProvider.php +++ b/src/world/format/io/WritableWorldProvider.php @@ -28,6 +28,8 @@ use pocketmine\world\format\Chunk; interface WritableWorldProvider extends WorldProvider{ /** * Generate the needed files in the path given + * + * @param mixed[] $options */ public static function generate(string $path, string $name, int $seed, string $generator, array $options = []) : void; diff --git a/src/world/generator/Flat.php b/src/world/generator/Flat.php index 2e6f370cb..01d6d6e58 100644 --- a/src/world/generator/Flat.php +++ b/src/world/generator/Flat.php @@ -51,6 +51,8 @@ class Flat extends Generator{ private $preset; /** + * @param mixed[] $options + * * @throws InvalidGeneratorOptionsException */ public function __construct(ChunkManager $world, int $seed, array $options = []){ diff --git a/src/world/generator/Generator.php b/src/world/generator/Generator.php index e428e51be..23906d24b 100644 --- a/src/world/generator/Generator.php +++ b/src/world/generator/Generator.php @@ -60,6 +60,8 @@ abstract class Generator{ /** * @throws InvalidGeneratorOptionsException + * + * @param mixed[] $options */ public function __construct(ChunkManager $world, int $seed, array $options = []){ $this->world = $world; diff --git a/src/world/generator/GeneratorRegisterTask.php b/src/world/generator/GeneratorRegisterTask.php index 7b2376b5e..d6d7f7e5b 100644 --- a/src/world/generator/GeneratorRegisterTask.php +++ b/src/world/generator/GeneratorRegisterTask.php @@ -43,6 +43,9 @@ class GeneratorRegisterTask extends AsyncTask{ /** @var int */ public $worldHeight = World::Y_MAX; + /** + * @param mixed[] $generatorSettings + */ public function __construct(World $world, string $generatorClass, array $generatorSettings = []){ $this->generatorClass = $generatorClass; $this->settings = serialize($generatorSettings); diff --git a/src/world/generator/hell/Nether.php b/src/world/generator/hell/Nether.php index d6dabd4e7..1b9c645ec 100644 --- a/src/world/generator/hell/Nether.php +++ b/src/world/generator/hell/Nether.php @@ -51,6 +51,8 @@ class Nether extends Generator{ private $noiseBase; /** + * @param mixed[] $options + * * @throws InvalidGeneratorOptionsException */ public function __construct(ChunkManager $world, int $seed, array $options = []){ diff --git a/src/world/generator/noise/Noise.php b/src/world/generator/noise/Noise.php index 9bee809b4..b3ff570c5 100644 --- a/src/world/generator/noise/Noise.php +++ b/src/world/generator/noise/Noise.php @@ -263,6 +263,9 @@ abstract class Noise{ return $noiseArray; } + /** + * @return float[][][] + */ public function getFastNoise3D(int $xSize, int $ySize, int $zSize, int $xSamplingRate, int $ySamplingRate, int $zSamplingRate, int $x, int $y, int $z) : array{ assert($xSamplingRate !== 0, new \InvalidArgumentException("xSamplingRate cannot be 0")); diff --git a/src/world/generator/normal/Normal.php b/src/world/generator/normal/Normal.php index edb03999c..9cfc25538 100644 --- a/src/world/generator/normal/Normal.php +++ b/src/world/generator/normal/Normal.php @@ -58,6 +58,8 @@ class Normal extends Generator{ private static $SMOOTH_SIZE = 2; /** + * @param mixed[] $options + * * @throws InvalidGeneratorOptionsException */ public function __construct(ChunkManager $world, int $seed, array $options = []){