WorldManager::createWorld() now accepts WorldCreationOptions instead of mixed[]

This commit is contained in:
Dylan K. Taylor
2021-04-13 21:03:25 +01:00
parent 6ce15854af
commit 9c1b274499
9 changed files with 165 additions and 75 deletions

View File

@ -24,17 +24,13 @@ declare(strict_types=1);
namespace pocketmine\world\format\io;
use pocketmine\world\format\Chunk;
use pocketmine\world\generator\Generator;
use pocketmine\world\WorldCreationOptions;
interface WritableWorldProvider extends WorldProvider{
/**
* Generate the needed files in the path given
*
* @param mixed[] $options
* @phpstan-param class-string<Generator> $generator
* @phpstan-param array<string, mixed> $options
*/
public static function generate(string $path, string $name, int $seed, string $generator, array $options = []) : void;
public static function generate(string $path, string $name, ?WorldCreationOptions $options = null) : void;
/**
* Saves a chunk (usually to disk).