WritableWorldProviderManagerEntry
extends WorldProviderManagerEntry
in package
Tags
Table of Contents
- $isValid : Closure
- $fromPath : Closure
- $generate : Closure
- __construct() : mixed
- fromPath() : WritableWorldProvider
- generate() : void
- Generates world manifest files and any other things needed to initialize a new world on disk
- isValid() : bool
- Tells if the path is a valid world.
Properties
$isValid
protected
Closure
$isValid
Tags
$fromPath
private
Closure
$fromPath
Tags
$generate
private
Closure
$generate
Tags
Methods
__construct()
public
__construct(Closure $isValid, Closure $fromPath, Closure $generate) : mixed
Parameters
- $isValid : Closure
- $fromPath : Closure
- $generate : Closure
Tags
Return values
mixed —fromPath()
public
fromPath(string $path) : WritableWorldProvider
Parameters
- $path : string
Return values
WritableWorldProvider —generate()
Generates world manifest files and any other things needed to initialize a new world on disk
public
generate(string $path, string $name, WorldCreationOptions $options) : void
Parameters
- $path : string
- $name : string
- $options : WorldCreationOptions
Return values
void —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