Fabric Scanner
class FabricScanner(objectMapper: ObjectMapper, utilities: Utilities) : JsonBasedScanner, Scanner<Pair<Collection<File>, Collection<Pair<String, String>>>, Collection<File>>
fabric.mod.json
-based scanning of Fabric-Minecraft mods.
Author
Griefed
Parameters
object Mapper
For JSON-parsing.
utilities
Common utilities used across ServerPackCreator.
Functions
Link copied to clipboard
open override fun checkForClientModsAndDeps(filesInModsDir: Collection<File>, clientMods: TreeSet<String>, modDependencies: ArrayList<Pair<String, Pair<String, String>>>)
Check every file and fill the clientMods
and modDependencies
sets with ids of mods which are clientside-only or dependencies of a mod.
Link copied to clipboard
Link copied to clipboard
Acquire a JsonNode from the specified file in the specified file.
Link copied to clipboard
open override fun getModsDelta(filesInModsDir: Collection<File>, clientMods: TreeSet<String>): TreeSet<File>
Get a list of mod-jars which can safely be excluded from the server pack.
Link copied to clipboard
open override fun scan(jarFiles: Collection<File>): Pair<Collection<File>, Collection<Pair<String, String>>>
Scan the fabric.mod.json
-files in mod JAR-files of a given directory for their sideness.