Class FabricBasedVersion

java.lang.Object
fr.flowarg.flowupdater.versions.AbstractModLoaderVersion
fr.flowarg.flowupdater.versions.fabric.FabricBasedVersion
All Implemented Interfaces:
ICurseForgeCompatible, IModrinthCompatible, IOptiFineCompatible, IModLoaderVersion
Direct Known Subclasses:
FabricVersion, QuiltVersion

public abstract class FabricBasedVersion extends AbstractModLoaderVersion
  • Field Details

    • metaApi

      protected final String metaApi
    • versionId

      protected String versionId
  • Constructor Details

  • Method Details

    • isModLoaderAlreadyInstalled

      public boolean isModLoaderAlreadyInstalled(@NotNull @NotNull Path installDir)
      Description copied from interface: IModLoaderVersion
      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

      public 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.
    • parseLibraries

      protected List<ParsedLibrary> parseLibraries(Path versionJsonFile, Path installDir) throws Exception
      Throws:
      Exception
    • getSha1FromLibrary

      protected Callable<String> getSha1FromLibrary(@NotNull @NotNull com.google.gson.JsonObject library, String builtJarUrl)