scan
public java.util.TreeSet<java.io.File> scan(java.util.Collection<java.io.File> filesInModsDir)
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.
- Parameters:
filesInModsDir - A list of files in which to check the mods.toml-files.
- Returns:
- Mods not to include in server pack based on mods.toml-configuration.