PocketMine-MP 5.37.4 git-0c453f585430c41919390ec01ffeb1e004b5334b
Loading...
Searching...
No Matches
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: