fromPath = $fromPath; $this->generate = $generate; } public function fromPath(string $path) : WritableWorldProvider{ return ($this->fromPath)($path); } /** * Generates world manifest files and any other things needed to initialize a new world on disk */ public function generate(string $path, string $name, WorldCreationOptions $options) : void{ ($this->generate)($path, $name, $options); } }