Package de.griefed.serverpackcreator.api.modscanning

Works out which mods are client-only so they can be left out of the server pack.

Each modloader stores its mod-metadata differently, so there's one scanner per loader, all reachable through a single facade.

  • ModScanner — the one-stop entry point: holds every per-loader scanner so callers pick the right one without knowing the details.

  • Scanner — the common interface every scanner implements.

  • FabricScanner — reads fabric.mod.json. QuiltScanner — reads quilt.mod.json.

  • ForgeAnnotationScanner — reads fml-cache-annotation.json (older Forge). ForgeTomlScanner — reads mods.toml (newer Forge). NeoForgeTomlScanner — reads neoforge.mods.toml (NeoForge, MC 1.16.5+).

  • JsonBasedScanner — shared helper code for the JSON-based scanners (Fabric/Quilt/old-Forge).

  • ScanningException — thrown when a jar's metadata can't be read.

See: Description