mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
LevelProvider::generate() accepts class-string<Generator>, not any
string
This commit is contained in:
parent
829dd02eea
commit
0a566f8218
@ -26,6 +26,7 @@ namespace pocketmine\level\format\io;
|
|||||||
use pocketmine\level\format\Chunk;
|
use pocketmine\level\format\Chunk;
|
||||||
use pocketmine\level\format\io\exception\CorruptedChunkException;
|
use pocketmine\level\format\io\exception\CorruptedChunkException;
|
||||||
use pocketmine\level\format\io\exception\UnsupportedChunkFormatException;
|
use pocketmine\level\format\io\exception\UnsupportedChunkFormatException;
|
||||||
|
use pocketmine\level\generator\Generator;
|
||||||
use pocketmine\math\Vector3;
|
use pocketmine\math\Vector3;
|
||||||
|
|
||||||
interface LevelProvider{
|
interface LevelProvider{
|
||||||
@ -54,7 +55,8 @@ interface LevelProvider{
|
|||||||
* Generate the needed files in the path given
|
* Generate the needed files in the path given
|
||||||
*
|
*
|
||||||
* @param mixed[] $options
|
* @param mixed[] $options
|
||||||
* @phpstan-param array<string, mixed> $options
|
* @phpstan-param class-string<Generator> $generator
|
||||||
|
* @phpstan-param array<string, mixed> $options
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user