Class ForgeTomlScanner

  • All Implemented Interfaces:
    de.griefed.serverpackcreator.api.modscanning.ModJarScanner

    
    public class ForgeTomlScanner
    extends DescriptorScanner
                        

    mods.toml-based scanning of Forge-Minecraft mods for Minecraft 1.16.5 and newer.

    • Constructor Detail

      • ForgeTomlScanner

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

      • read

         ScannedMod read(File modJar)

        Read one mod's mods.toml for its sideness.

        The side a mod demands of the platform (Forge/NeoForge/Minecraft) is taken as its own: a mod requiring Minecraft side=CLIENT is clientside. Every other dependency is recorded as a dependency instead. A mod declaring no dependencies at all is treated as server-side, to prevent false positives.

        Parameters:
        modJar - The jar whose mods.toml to read.
        Returns:

        What this mod declared.