PocketMine-MP 5.18.1 git-9381fc4172e5dce4cada1cb356050c8a2ab57b94
|
Public Member Functions | |
__construct (\Closure $isValid, private \Closure $fromPath) | |
fromPath (string $path, \Logger $logger) | |
isValid (string $path) | |
@phpstan-type FromPath \Closure(string $path, \Logger $logger) : WorldProvider
Definition at line 29 of file ReadOnlyWorldProviderManagerEntry.php.
pocketmine\world\format\io\ReadOnlyWorldProviderManagerEntry::__construct | ( | \Closure | $isValid, |
private \Closure | $fromPath | ||
) |
@phpstan-param FromPath $fromPath
Definition at line 32 of file ReadOnlyWorldProviderManagerEntry.php.
pocketmine\world\format\io\ReadOnlyWorldProviderManagerEntry::fromPath | ( | string | $path, |
\Logger | $logger | ||
) |
CorruptedWorldException | |
UnsupportedWorldFormatException |
Reimplemented from pocketmine\world\format\io\WorldProviderManagerEntry.
Definition at line 39 of file ReadOnlyWorldProviderManagerEntry.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.