ReadOnlyWorldProviderManagerEntry
extends WorldProviderManagerEntry
in package
Tags
Table of Contents
- $isValid : Closure
- $fromPath : Closure
- __construct() : mixed
- fromPath() : WorldProvider
- isValid() : bool
- Tells if the path is a valid world.
Properties
$isValid
protected
Closure
$isValid
Tags
$fromPath
private
Closure
$fromPath
Tags
Methods
__construct()
public
__construct(Closure $isValid, Closure $fromPath) : mixed
Parameters
- $isValid : Closure
- $fromPath : Closure
Tags
Return values
mixed —fromPath()
public
fromPath(string $path) : WorldProvider
Parameters
- $path : string
Return values
WorldProvider —isValid()
Tells if the path is a valid world.
public
isValid(string $path) : bool
This must tell if the current format supports opening the files in the directory
Parameters
- $path : string