@Component
public final class FabricScanner
extends java.lang.Object
fabric.mod.json-based scanning of Fabric-Minecraft mods.| Constructor and Description |
|---|
FabricScanner(@NotNull com.fasterxml.jackson.databind.ObjectMapper objectMapper,
@NotNull Utilities utilities) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.util.TreeSet<java.io.File> |
scan(@NotNull 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(@NotNull
@NotNull com.fasterxml.jackson.databind.ObjectMapper objectMapper,
@NotNull
@NotNull Utilities utilities)
@NotNull
public @NotNull java.util.TreeSet<java.io.File> scan(@NotNull
@NotNull 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.