public class FlowUpdater
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FlowUpdater.FlowUpdaterBuilder
Builder of
FlowUpdater . |
Modifier and Type | Field and Description |
---|---|
static fr.flowarg.flowlogger.ILogger |
DEFAULT_LOGGER
Default logger, null for path argument = no file logger
|
static java.lang.String |
FU_VERSION
FlowUpdater's version string constant
|
static IProgressCallback |
NULL_CALLBACK
Default callback
|
Modifier and Type | Method and Description |
---|---|
IProgressCallback |
getCallback()
Get the current callback.
|
DownloadList |
getDownloadList()
Get the download list which contains all download information.
|
java.util.List<ExternalFile> |
getExternalFiles()
Get the list of external files.
|
fr.flowarg.flowlogger.ILogger |
getLogger()
Get the current logger.
|
IModLoaderVersion |
getModLoaderVersion()
Get th
IModLoaderVersion attached to this FlowUpdater instance. |
java.util.List<java.lang.Runnable> |
getPostExecutions()
Get the list of post-executions.
|
UpdaterOptions |
getUpdaterOptions()
Get the FlowUpdater's options.
|
VanillaVersion |
getVanillaVersion()
Get the
VanillaVersion attached to this FlowUpdater instance. |
void |
update(java.nio.file.Path dir)
This method updates the Minecraft Installation in the given directory.
|
public static final java.lang.String FU_VERSION
public static final IProgressCallback NULL_CALLBACK
public static final fr.flowarg.flowlogger.ILogger DEFAULT_LOGGER
public void update(java.nio.file.Path dir) throws java.lang.Exception
vanillaVersion
is VanillaVersion.NULL_VERSION
, the updater will
only run external files and post-executions.dir
- Directory where is the Minecraft installation.java.lang.Exception
- if an I/O problem occurred.FlowUpdaterException
- if an important error occurred during the update.public VanillaVersion getVanillaVersion()
VanillaVersion
attached to this FlowUpdater
instance.public IModLoaderVersion getModLoaderVersion()
IModLoaderVersion
attached to this FlowUpdater
instance.public fr.flowarg.flowlogger.ILogger getLogger()
public IProgressCallback getCallback()
public java.util.List<ExternalFile> getExternalFiles()
public java.util.List<java.lang.Runnable> getPostExecutions()
public DownloadList getDownloadList()
DownloadList
instance.public UpdaterOptions getUpdaterOptions()