Class ModFileDeleter

java.lang.Object
fr.flowarg.flowupdater.utils.ModFileDeleter
All Implemented Interfaces:
IFileDeleter

public class ModFileDeleter extends Object implements IFileDeleter
A file deleter designed to check mods.
  • Constructor Details

    • ModFileDeleter

      public ModFileDeleter(boolean useFileDeleter, String... modsToIgnore)
    • ModFileDeleter

      public ModFileDeleter(String... modsToIgnore)
    • ModFileDeleter

      public ModFileDeleter(boolean useFileDeleter, Pattern modsToIgnorePattern)
    • ModFileDeleter

      public ModFileDeleter(Pattern modsToIgnorePattern)
  • Method Details

    • delete

      public void delete(fr.flowarg.flowlogger.ILogger logger, Path modsDir, List<Mod> mods, OptiFine optiFine, ModrinthModPack modrinthModPack) throws Exception
      Delete all bad files in the provided directory.
      Parameters:
      logger - the logger.
      modsDir - the mod's folder.
      mods - the mods list.
      optiFine - the OptiFine object. (SPECIFIC USE CASE)
      modrinthModPack - the modrinth mod pack. (SPECIFIC USE CASE)
      Throws:
      Exception - thrown if an error occurred
    • isUseFileDeleter

      public boolean isUseFileDeleter()
    • getModsToIgnore

      public String[] getModsToIgnore()