Interface ModJarScanner

  • All Implemented Interfaces:

    
    public interface ModJarScanner
    
                        

    Reads 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract List<ScannedMod> scan(Collection<File> jarFiles) Read every jar in jarFiles and report what each declared.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.