Class ForgeTomlScanner

    • Constructor Detail

      • ForgeTomlScanner

        ForgeTomlScanner(TomlParser tomlParser)
        Parameters:
        tomlParser - To parse .toml-files.
    • Method Detail

      • scan

         Pair<Collection<File>, Collection<Pair<String, String>>> scan(Collection<File> jarFiles)

        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:
        jarFiles - 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.