Class ForgeTomlScanner
-
- All Implemented Interfaces:
-
de.griefed.serverpackcreator.api.modscanning.ModJarScanner
public class ForgeTomlScanner extends DescriptorScanner
mods.toml-based scanning of Forge-Minecraft mods for Minecraft 1.16.5 and newer.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringmodsTomlprivate final RegexneoForgeMinecraftprivate final Regexclientprivate final StringscanAnnouncement
-
Constructor Summary
Constructors Constructor Description ForgeTomlScanner(TomlParser tomlParser)
-
Method Summary
Modifier and Type Method Description StringgetModsToml()final RegexgetNeoForgeMinecraft()final RegexgetClient()StringgetScanAnnouncement()ScannedModread(File modJar)Read one mod's mods.tomlfor its sideness.-
-
Method Detail
-
getModsToml
String getModsToml()
-
getNeoForgeMinecraft
final Regex getNeoForgeMinecraft()
-
getScanAnnouncement
String getScanAnnouncement()
-
read
ScannedMod read(File modJar)
Read one mod's
mods.tomlfor its sideness.The side a mod demands of the platform (
Forge/NeoForge/Minecraft) is taken as its own: a mod requiring Minecraftside=CLIENTis clientside. Every other dependency is recorded as a dependency instead. A mod declaring no dependencies at all is treated as server-side, to prevent false positives.- Parameters:
modJar- The jar whosemods.tomlto read.- Returns:
What this mod declared.
-
-
-
-