Search in sources :

Example 1 with IModLanguageProvider

use of net.minecraftforge.forgespi.language.IModLanguageProvider in project MinecraftForge by MinecraftForge.

the class Scanner method scan.

public ModFileScanData scan() {
    ModFileScanData result = new ModFileScanData();
    result.addModFileInfo(fileToScan.getModFileInfo());
    fileToScan.scanFile(p -> fileVisitor(p, result));
    final List<IModLanguageProvider> loaders = fileToScan.getLoaders();
    if (loaders != null) {
        loaders.forEach(loader -> {
            LOGGER.debug(LogMarkers.SCAN, "Scanning {} with language loader {}", fileToScan.getFilePath(), loader.name());
            loader.getFileVisitor().accept(result);
        });
    }
    return result;
}
Also used : ModFileScanData(net.minecraftforge.forgespi.language.ModFileScanData) IModLanguageProvider(net.minecraftforge.forgespi.language.IModLanguageProvider)

Aggregations

IModLanguageProvider (net.minecraftforge.forgespi.language.IModLanguageProvider)1 ModFileScanData (net.minecraftforge.forgespi.language.ModFileScanData)1