scan
open override fun scan(jarFiles: Collection<File>): Pair<Collection<File>, Collection<Pair<String, String>>>(source)
Scan the mods.toml-files in mod JAR-files of a given directory for their sideness.
If mods specifies side=BOTH|SERVER, it is added.
If dependencies.modId for Forge|Minecraft specifies side=BOTH|SERVER , it is added.
Any modId of a dependency specifying side=BOTH|SERVER is added.
If no sideness can be found for a given mod, it is added to prevent false positives.
Return
Mods not to include in server pack based on mods.toml-configuration.
Author
Griefed
Parameters
jar Files
A list of files in which to check the mods.toml-files.