Search in sources :

Example 1 with ModulePathScanner

use of org.terasology.gestalt.module.ModulePathScanner in project Terasology by MovingBlocks.

the class ModuleManager method loadModulesFromApplicationPath.

private void loadModulesFromApplicationPath(PathManager pathManager) {
    ModulePathScanner scanner = new ModulePathScanner(moduleFactory);
    List<File> paths = pathManager.getModulePaths().stream().map(Path::toFile).collect(Collectors.toList());
    scanner.scan(registry, paths);
}
Also used : ModulePathScanner(org.terasology.gestalt.module.ModulePathScanner) File(java.io.File)

Aggregations

File (java.io.File)1 ModulePathScanner (org.terasology.gestalt.module.ModulePathScanner)1