isValid = $isValid; } /** * Tells if the path is a valid world. * This must tell if the current format supports opening the files in the directory */ public function isValid(string $path) : bool{ return ($this->isValid)($path); } /** * @throws CorruptedWorldException * @throws UnsupportedWorldFormatException */ abstract public function fromPath(string $path) : WorldProvider; }