public static class CollectiveFrameworkEarlyTransformerPlugin.ModpackProvider
extends java.lang.Object
Constructor and Description |
---|
CollectiveFrameworkEarlyTransformerPlugin.ModpackProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
doOverwrite(java.io.File xmlFile)
Determines whether to overwrite based on a modpack.xml
|
protected static java.lang.String |
formatPath(java.lang.String path) |
java.lang.String |
getLastVersion()
Gets the last used version of the modpack
|
java.lang.String |
getVersion()
Gets the current modpack version
|
void |
installMods(java.util.List<CollectiveFrameworkEarlyTransformerPlugin.ModpackProvider.IModpackFile> mods,
boolean overwrite)
Installs mods from a
CollectiveFrameworkEarlyTransformerPlugin.ModpackProvider.IModpackFile list |
java.util.List<CollectiveFrameworkEarlyTransformerPlugin.ModpackProvider.IModpackFile> |
parseModpackXML(java.io.File xmlFile)
Parses an xml file following the "Modpack Schema"
|
public CollectiveFrameworkEarlyTransformerPlugin.ModpackProvider()
public boolean doOverwrite(java.io.File xmlFile) throws javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException
xmlFile
- The file to parsejavax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
public java.lang.String getLastVersion()
public java.lang.String getVersion()
public java.util.List<CollectiveFrameworkEarlyTransformerPlugin.ModpackProvider.IModpackFile> parseModpackXML(java.io.File xmlFile) throws javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException
xmlFile
- The file to parsejavax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
public void installMods(java.util.List<CollectiveFrameworkEarlyTransformerPlugin.ModpackProvider.IModpackFile> mods, boolean overwrite) throws java.io.IOException
CollectiveFrameworkEarlyTransformerPlugin.ModpackProvider.IModpackFile
listmods
- Mods to installoverwrite
- Whether to override existing files under the same filenamejava.io.IOException
protected static java.lang.String formatPath(java.lang.String path)