Package fr.flowarg.flowupdater
Class FlowUpdater
java.lang.Object
fr.flowarg.flowupdater.FlowUpdater
Represent the base class of the updater.
You can define some parameters about your version (Forge, Vanilla, MCP, Fabric...).
You can define some parameters about your version (Forge, Vanilla, MCP, Fabric...).
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final fr.flowarg.flowlogger.ILoggerDefault logger, null for path argument = no file loggerstatic final StringFlowUpdater's version string constantstatic final IProgressCallbackDefault callback -
Method Summary
Modifier and TypeMethodDescriptionGet the current callback.Get the download list which contains all download information.Get the list of external files.fr.flowarg.flowlogger.ILoggerGet the current logger.Get thIModLoaderVersionattached to thisFlowUpdaterinstance.Get the list of post-executions.Get the FlowUpdater's options.Get theVanillaVersionattached to thisFlowUpdaterinstance.voidThis method updates the Minecraft Installation in the given directory.
-
Field Details
-
FU_VERSION
FlowUpdater's version string constant- See Also:
-
NULL_CALLBACK
Default callback -
DEFAULT_LOGGER
public static final fr.flowarg.flowlogger.ILogger DEFAULT_LOGGERDefault logger, null for path argument = no file logger
-
-
Method Details
-
update
This method updates the Minecraft Installation in the given directory. If thevanillaVersionisVanillaVersion.NULL_VERSION, the updater will only run external files and post-executions.- Parameters:
dir- Directory where is the Minecraft installation.- Throws:
Exception- if an I/O problem occurred.FlowUpdaterException- if an important error occurred during the update.
-
getVanillaVersion
Get theVanillaVersionattached to thisFlowUpdaterinstance.- Returns:
- a vanilla version.
-
getModLoaderVersion
Get thIModLoaderVersionattached to thisFlowUpdaterinstance.- Returns:
- a mod loader version.
-
getLogger
public fr.flowarg.flowlogger.ILogger getLogger()Get the current logger.- Returns:
- a logger.
-
getCallback
Get the current callback.- Returns:
- a callback.
-
getExternalFiles
Get the list of external files.- Returns:
- external files.
-
getPostExecutions
Get the list of post-executions.- Returns:
- all post-executions
-
getDownloadList
Get the download list which contains all download information.- Returns:
- a
DownloadListinstance.
-
getUpdaterOptions
Get the FlowUpdater's options.- Returns:
- some useful settings.
-