PocketMine-MP 5.23.3 git-4a4572131f27ab967701ceaaf2020cfbe26e375c
|
Public Member Functions | |
__construct (\Closure $isValid, private \Closure $fromPath, private \Closure $generate) | |
fromPath (string $path, \Logger $logger) | |
generate (string $path, string $name, WorldCreationOptions $options) | |
isValid (string $path) | |
@phpstan-type FromPath \Closure(string $path, \Logger $logger) : WritableWorldProvider @phpstan-type Generate \Closure(string $path, string $name, WorldCreationOptions $options) : void
Definition at line 32 of file WritableWorldProviderManagerEntry.php.
pocketmine\world\format\io\WritableWorldProviderManagerEntry::__construct | ( | \Closure | $isValid, |
private \Closure | $fromPath, | ||
private \Closure | $generate ) |
@phpstan-param FromPath $fromPath @phpstan-param Generate $generate
Definition at line 38 of file WritableWorldProviderManagerEntry.php.
pocketmine\world\format\io\WritableWorldProviderManagerEntry::fromPath | ( | string | $path, |
\Logger | $logger ) |
CorruptedWorldException | |
UnsupportedWorldFormatException |
Reimplemented from pocketmine\world\format\io\WorldProviderManagerEntry.
Definition at line 46 of file WritableWorldProviderManagerEntry.php.
pocketmine\world\format\io\WritableWorldProviderManagerEntry::generate | ( | string | $path, |
string | $name, | ||
WorldCreationOptions | $options ) |
Generates world manifest files and any other things needed to initialize a new world on disk
Definition at line 53 of file WritableWorldProviderManagerEntry.php.
|
inherited |
Tells if the path is a valid world. This must tell if the current format supports opening the files in the directory
Definition at line 43 of file WorldProviderManagerEntry.php.