Interface ModJarScanner
-
- All Implemented Interfaces:
public interface ModJarScannerReads mod jars and reports what each one declared about the side it belongs on.
One implementation per descriptor format, because each modloader states sideness its own way. The contract every implementation owes its caller is total: one ScannedMod comes back per jar handed in, in the same order, whatever happened to that jar. The include-list a server pack is built from is assembled solely from these results, so a dropped entry is a mod missing from the finished pack — see ScannedMod for why the fallbacks default to keeping a mod rather than excluding it.
This is the type to dispatch on rather than a concrete scanner; ModScanner.scannerFor picks the right one for a modloader and Minecraft version.
-
-
Method Summary
Modifier and Type Method Description abstract List<ScannedMod>scan(Collection<File> jarFiles)Read every jar in jarFiles and report what each declared. -
-
Method Detail
-
scan
abstract List<ScannedMod> scan(Collection<File> jarFiles)
Read every jar in jarFiles and report what each declared.
- Returns:
One entry per input jar, in input order — never fewer, whatever a jar contained.
-
-
-
-