@Component
public final class FabricScanner
extends java.lang.Object
fabric.mod.json-based scanning of Fabric-Minecraft mods.| Constructor and Description |
|---|
FabricScanner(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
Utilities utilities) |
| Modifier and Type | Method and Description |
|---|---|
java.util.TreeSet<java.io.File> |
scan(java.util.Collection<java.io.File> filesInModsDir)
Scan the
fabric.mod.json-files in mod JAR-files of a given directory for their
sideness.If environment specifies client, and is not listed as a
dependency for another mod, it is added and therefore later on excluded from the server pack. |
@Autowired
public FabricScanner(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
Utilities utilities)
public java.util.TreeSet<java.io.File> scan(java.util.Collection<java.io.File> filesInModsDir)
fabric.mod.json-files in mod JAR-files of a given directory for their
sideness.environment specifies client, and is not listed as a
dependency for another mod, it is added and therefore later on excluded from the server pack.filesInModsDir - A list of files in which to check the fabric.mod.json-files.