PocketMine-MP 5.15.1 git-fb9a74e8799c71ed8292cfa53abe7a4c9204629d
pocketmine\world\format\io\WorldProviderManager Class Reference
+ Collaboration diagram for pocketmine\world\format\io\WorldProviderManager:

Public Member Functions

 addProvider (WorldProviderManagerEntry $providerEntry, string $name, bool $overwrite=false)
 
 getAvailableProviders ()
 
 getDefault ()
 
 getMatchingProviders (string $path)
 
 getProviderByName (string $name)
 
 setDefault (WritableWorldProviderManagerEntry $class)
 

Protected Attributes

array $providers = []
 

Detailed Description

Definition at line 34 of file WorldProviderManager.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\format\io\WorldProviderManager::__construct ( )

Definition at line 43 of file WorldProviderManager.php.

Member Function Documentation

◆ addProvider()

pocketmine\world\format\io\WorldProviderManager::addProvider ( WorldProviderManagerEntry  $providerEntry,
string  $name,
bool  $overwrite = false 
)

Definition at line 64 of file WorldProviderManager.php.

◆ getAvailableProviders()

pocketmine\world\format\io\WorldProviderManager::getAvailableProviders ( )
Returns
WorldProviderManagerEntry[] @phpstan-return array<string, WorldProviderManagerEntry>

Definition at line 93 of file WorldProviderManager.php.

◆ getDefault()

pocketmine\world\format\io\WorldProviderManager::getDefault ( )

Returns the default format used to generate new worlds.

Definition at line 56 of file WorldProviderManager.php.

◆ getMatchingProviders()

pocketmine\world\format\io\WorldProviderManager::getMatchingProviders ( string  $path)

Returns a WorldProvider class for this path, or null

Returns
WorldProviderManagerEntry[] @phpstan-return array<string, WorldProviderManagerEntry>

Definition at line 79 of file WorldProviderManager.php.

◆ getProviderByName()

pocketmine\world\format\io\WorldProviderManager::getProviderByName ( string  $name)

Returns a WorldProvider by name, or null if not found

Definition at line 100 of file WorldProviderManager.php.

◆ setDefault()

pocketmine\world\format\io\WorldProviderManager::setDefault ( WritableWorldProviderManagerEntry  $class)

Definition at line 60 of file WorldProviderManager.php.

Member Data Documentation

◆ $providers

array pocketmine\world\format\io\WorldProviderManager::$providers = []
protected

Definition at line 39 of file WorldProviderManager.php.


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