PocketMine-MP 5.18.1 git-9381fc4172e5dce4cada1cb356050c8a2ab57b94
pocketmine\world\format\io\ReadOnlyWorldProviderManagerEntry Class Reference
+ Inheritance diagram for pocketmine\world\format\io\ReadOnlyWorldProviderManagerEntry:
+ Collaboration diagram for pocketmine\world\format\io\ReadOnlyWorldProviderManagerEntry:

Public Member Functions

 __construct (\Closure $isValid, private \Closure $fromPath)
 
 fromPath (string $path, \Logger $logger)
 
 isValid (string $path)
 

Detailed Description

@phpstan-type FromPath \Closure(string $path, \Logger $logger) : WorldProvider

Definition at line 29 of file ReadOnlyWorldProviderManagerEntry.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\format\io\ReadOnlyWorldProviderManagerEntry::__construct ( \Closure  $isValid,
private \Closure  $fromPath 
)

@phpstan-param FromPath $fromPath

Definition at line 32 of file ReadOnlyWorldProviderManagerEntry.php.

Member Function Documentation

◆ fromPath()

pocketmine\world\format\io\ReadOnlyWorldProviderManagerEntry::fromPath ( string  $path,
\Logger  $logger 
)
Exceptions
CorruptedWorldException
UnsupportedWorldFormatException

Reimplemented from pocketmine\world\format\io\WorldProviderManagerEntry.

Definition at line 39 of file ReadOnlyWorldProviderManagerEntry.php.

◆ isValid()

pocketmine\world\format\io\WorldProviderManagerEntry::isValid ( string  $path)
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.


The documentation for this class was generated from the following file: