Interface IModLoaderVersion

All Known Implementing Classes:
AbstractModLoaderVersion, FabricBasedVersion, FabricVersion, ForgeVersion, NeoForgeVersion, QuiltVersion

public interface IModLoaderVersion
  • Method Details

    • attachFlowUpdater

      void attachFlowUpdater(@NotNull @NotNull FlowUpdater flowUpdater)
      Attach FlowUpdater object to mod loaders, allow them to retrieve some information.
      Parameters:
      flowUpdater - flow updater object.
    • isModLoaderAlreadyInstalled

      boolean isModLoaderAlreadyInstalled(@NotNull @NotNull Path installDir)
      Check if the current mod loader is already installed.
      Parameters:
      installDir - the dir to check.
      Returns:
      if the current mod loader is already installed.
    • install

      default void install(@NotNull @NotNull Path installDir) throws Exception
      Install the current mod loader in a specified directory.
      Parameters:
      installDir - folder where the mod loader is going to be installed.
      Throws:
      Exception - if an I/O error occurred.
    • installMods

      void installMods(@NotNull @NotNull Path modsDir) throws Exception
      Install all mods in the mods' directory.
      Parameters:
      modsDir - mods directory.
      Throws:
      Exception - if an I/O error occurred.
    • getModLoaderVersion

      String getModLoaderVersion()
      Get the mod loader version.
      Returns:
      the mod loader version.
    • getMods

      List<Mod> getMods()
      Get all processed mods / mods to process.
      Returns:
      all processed mods / mods to process.
    • installAllMods

      default void installAllMods(@NotNull @NotNull Path modsDir)
      Download mods in the mods' folder.
      Parameters:
      modsDir - mods' folder
    • getDownloadList

      DownloadList getDownloadList()
      Get the DownloadList object.
      Returns:
      download info.
    • getLogger

      fr.flowarg.flowlogger.ILogger getLogger()
      Get the ILogger object.
      Returns:
      the logger.
    • getCallback

      IProgressCallback getCallback()
      Get the IProgressCallback object.
      Returns:
      the progress callback.
    • getFileDeleter

      ModFileDeleter getFileDeleter()
      Get the attached ModFileDeleter instance;
      Returns:
      this mod file deleter;
    • name

      String name()
      Get the mod loader name.
      Returns:
      the mod loader name.