Documentation

ReadOnlyWorldProviderManagerEntry extends WorldProviderManagerEntry
in package

Tags
phpstan-type

FromPath \Closure(string $path) : WorldProvider

Table of Contents

$isValid  : Closure
$fromPath  : Closure
__construct()  : mixed
fromPath()  : WorldProvider
isValid()  : bool
Tells if the path is a valid world.

Properties

Methods

__construct()

public __construct(Closure $isValid, Closure $fromPath) : mixed
Parameters
$isValid : Closure
$fromPath : Closure
Tags
phpstan-param

FromPath $fromPath

Return values
mixed

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
Return values
bool

Search results