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);
}
Aggregations