src/Registry/ModRegistry.php
public function get(string $modName): ?Mod
    {
        $this->loadMods();
        return $this->mods[$modName] ?? null;
    }
public function get(string $modName): ?Mod
    {
        $this->loadMods();
        return $this->mods[$modName] ?? null;
    }
public function get ( string $ modName ) : ? Mod { $ this -> loadMods ( ) ; return $ this -> mods [ $ modName ] ?? null ; }
Returns a mod from the registry.
@param string $modName
@return Mod|null
Returns a mod from the registry .