Class ModrinthIntegration

java.lang.Object
fr.flowarg.flowupdater.integrations.Integration
fr.flowarg.flowupdater.integrations.modrinthintegration.ModrinthIntegration

public class ModrinthIntegration extends Integration
  • Constructor Details

    • ModrinthIntegration

      public ModrinthIntegration(fr.flowarg.flowlogger.ILogger logger, Path folder) throws Exception
      Default constructor of a basic Integration.
      Parameters:
      logger - the logger used.
      folder - the folder where the plugin can work.
      Throws:
      Exception - if an error occurred.
  • Method Details

    • fetchMod

      public Mod fetchMod(@NotNull @NotNull ModrinthVersionInfo versionInfo) throws Exception
      Throws:
      Exception
    • parseModFile

      public Mod parseModFile(@NotNull @NotNull com.google.gson.JsonObject version)
    • getCurseModPack

      public ModrinthModPack getCurseModPack(ModrinthModPackInfo info) throws Exception
      Get a CurseForge's mod pack object with a project identifier and a file identifier.
      Parameters:
      info - CurseForge's mod pack info.
      Returns:
      the curse's mod pack corresponding to given parameters.
      Throws:
      Exception - if an error occurred.