Class ForgeAnnotationScanner
-
- All Implemented Interfaces:
-
de.griefed.serverpackcreator.api.modscanning.ModJarScanner
public final class ForgeAnnotationScanner extends JsonDescriptorScanner
fml-cache-annotation.json-based scanning of Forge-Minecraft mods of older versions.Griefed
-
-
Field Summary
Fields Modifier and Type Field Description private final RegexdependencyCheckprivate final RegexdependencyReplaceprivate final StringscanAnnouncement
-
Constructor Summary
Constructors Constructor Description ForgeAnnotationScanner(ObjectMapper objectMapper, Utilities utilities)
-
Method Summary
Modifier and Type Method Description final RegexgetDependencyCheck()final RegexgetDependencyReplace()StringgetScanAnnouncement()ScannedModread(File modJar)Read one mod's fml_cache_annotation.jsonfor its sideness.-
Methods inherited from class de.griefed.serverpackcreator.api.modscanning.JsonDescriptorScanner
getJarJson -
Methods inherited from class de.griefed.serverpackcreator.api.modscanning.DescriptorScanner
scan -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ForgeAnnotationScanner
ForgeAnnotationScanner(ObjectMapper objectMapper, Utilities utilities)
- Parameters:
objectMapper- For JSON-parsing.utilities- Common utilities used across ServerPackCreator.
-
-
Method Detail
-
getDependencyCheck
final Regex getDependencyCheck()
-
getDependencyReplace
final Regex getDependencyReplace()
-
getScanAnnouncement
String getScanAnnouncement()
-
read
ScannedMod read(File modJar)
Read one mod's
fml_cache_annotation.jsonfor its sideness.If
clientSideOnlyspecifies"value": "true", and the mod is not listed as a dependency of another mod, it is later excluded from the server pack.- Parameters:
modJar- The jar whose annotation cache to read.- Returns:
What this mod declared.
-
-
-
-