Class FlowUpdater

java.lang.Object
fr.flowarg.flowupdater.FlowUpdater

public class FlowUpdater extends Object
Represent the base class of the updater.
You can define some parameters about your version (Forge, Vanilla, MCP, Fabric...).
  • Field Details

    • FU_VERSION

      public static final String FU_VERSION
      FlowUpdater's version string constant
      See Also:
    • NULL_CALLBACK

      public static final IProgressCallback NULL_CALLBACK
      Default callback
    • DEFAULT_LOGGER

      public static final fr.flowarg.flowlogger.ILogger DEFAULT_LOGGER
      Default logger, null for path argument = no file logger
  • Method Details

    • update

      public void update(Path dir) throws Exception
      This method updates the Minecraft Installation in the given directory. If the vanillaVersion is VanillaVersion.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

      public VanillaVersion getVanillaVersion()
      Get the VanillaVersion attached to this FlowUpdater instance.
      Returns:
      a vanilla version.
    • getModLoaderVersion

      public IModLoaderVersion getModLoaderVersion()
      Get th IModLoaderVersion attached to this FlowUpdater instance.
      Returns:
      a mod loader version.
    • getLogger

      public fr.flowarg.flowlogger.ILogger getLogger()
      Get the current logger.
      Returns:
      a logger.
    • getCallback

      public IProgressCallback getCallback()
      Get the current callback.
      Returns:
      a callback.
    • getExternalFiles

      public List<ExternalFile> getExternalFiles()
      Get the list of external files.
      Returns:
      external files.
    • getPostExecutions

      public List<Runnable> getPostExecutions()
      Get the list of post-executions.
      Returns:
      all post-executions
    • getDownloadList

      public DownloadList getDownloadList()
      Get the download list which contains all download information.
      Returns:
      a DownloadList instance.
    • getUpdaterOptions

      public UpdaterOptions getUpdaterOptions()
      Get the FlowUpdater's options.
      Returns:
      some useful settings.