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

Public Member Functions

 fromPath (string $path, \Logger $logger)
 
 isValid (string $path)
 

Protected Member Functions

 __construct (protected \Closure $isValid)
 

Detailed Description

@phpstan-type IsValid \Closure(string $path) : bool

Definition at line 32 of file WorldProviderManagerEntry.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\format\io\WorldProviderManagerEntry::__construct ( protected \Closure  $isValid)
protected

@phpstan-param IsValid $isValid

Definition at line 35 of file WorldProviderManagerEntry.php.

Member Function Documentation

◆ fromPath()

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

Reimplemented in pocketmine\world\format\io\ReadOnlyWorldProviderManagerEntry, and pocketmine\world\format\io\WritableWorldProviderManagerEntry.

◆ isValid()

pocketmine\world\format\io\WorldProviderManagerEntry::isValid ( string  $path)

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: