@Component
public final class AnnotationScanner
extends java.lang.Object
fml-cache-annotation.json-based scanning of Forge-Minecraft mods of older versions.| Constructor and Description |
|---|
AnnotationScanner(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
fml-cache-annotation.json-files in mod JAR-files of a given directory for
their sideness.If clientSideOnly specifies "value": "true", and is not
listed as a dependency for another mod, it is added and therefore later on excluded from the
server pack. |
@Autowired
public AnnotationScanner(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
Utilities utilities)
public java.util.TreeSet<java.io.File> scan(java.util.Collection<java.io.File> filesInModsDir)
fml-cache-annotation.json-files in mod JAR-files of a given directory for
their sideness.clientSideOnly specifies "value": "true", 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
fml-cache-annotation.json -files.