WorldProviderManager
in package
Table of Contents
- $providers : array<string|int, WorldProviderManagerEntry>
- $default : WritableWorldProviderManagerEntry
- __construct() : mixed
- addProvider() : void
- getAvailableProviders() : array<string|int, WorldProviderManagerEntry>
- getDefault() : WritableWorldProviderManagerEntry
- Returns the default format used to generate new worlds.
- getMatchingProviders() : array<string|int, WorldProviderManagerEntry>
- Returns a WorldProvider class for this path, or null
- getProviderByName() : WorldProviderManagerEntry|null
- Returns a WorldProvider by name, or null if not found
- setDefault() : void
Properties
$providers
protected
array<string|int, WorldProviderManagerEntry>
$providers
= []
Tags
$default
private
WritableWorldProviderManagerEntry
$default
Methods
__construct()
public
__construct() : mixed
Return values
mixed —addProvider()
public
addProvider(WorldProviderManagerEntry $providerEntry, string $name[, bool $overwrite = false ]) : void
Parameters
- $providerEntry : WorldProviderManagerEntry
- $name : string
- $overwrite : bool = false
Return values
void —getAvailableProviders()
public
getAvailableProviders() : array<string|int, WorldProviderManagerEntry>
Tags
Return values
array<string|int, WorldProviderManagerEntry> —getDefault()
Returns the default format used to generate new worlds.
public
getDefault() : WritableWorldProviderManagerEntry
Return values
WritableWorldProviderManagerEntry —getMatchingProviders()
Returns a WorldProvider class for this path, or null
public
getMatchingProviders(string $path) : array<string|int, WorldProviderManagerEntry>
Parameters
- $path : string
Tags
Return values
array<string|int, WorldProviderManagerEntry> —getProviderByName()
Returns a WorldProvider by name, or null if not found
public
getProviderByName(string $name) : WorldProviderManagerEntry|null
Parameters
- $name : string
Return values
WorldProviderManagerEntry|null —setDefault()
public
setDefault(WritableWorldProviderManagerEntry $class) : void
Parameters
- $class : WritableWorldProviderManagerEntry