Skip to content

WorldProviderManager ​

final class · pocketmine\world\format\io\WorldProviderManager · source

Properties ​

$providers protected ​

php
protected array $providers

Methods ​

__construct() ​

php
public function __construct()

addProvider() ​

php
public function addProvider(\pocketmine\world\format\io\WorldProviderManagerEntry $providerEntry, string $name, bool $overwrite = false) : void

getAvailableProviders() ​

php
public function getAvailableProviders() : array

getDefault() ​

php
public function getDefault() : \pocketmine\world\format\io\WritableWorldProviderManagerEntry

Returns the default format used to generate new worlds.

getMatchingProviders() ​

php
public function getMatchingProviders(string $path) : array

Returns a WorldProvider class for this path, or null

getProviderByName() ​

php
public function getProviderByName(string $name) : ?\pocketmine\world\format\io\WorldProviderManagerEntry

Returns a WorldProvider by name, or null if not found

setDefault() ​

php
public function setDefault(\pocketmine\world\format\io\WritableWorldProviderManagerEntry $class) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.