Package fr.flowarg.flowupdater.utils
Class ModFileDeleter
java.lang.Object
fr.flowarg.flowupdater.utils.ModFileDeleter
- All Implemented Interfaces:
IFileDeleter
A file deleter designed to check mods.
-
Constructor Summary
ConstructorsConstructorDescriptionModFileDeleter(boolean useFileDeleter, String... modsToIgnore) ModFileDeleter(boolean useFileDeleter, Pattern modsToIgnorePattern) ModFileDeleter(String... modsToIgnore) ModFileDeleter(Pattern modsToIgnorePattern) -
Method Summary
-
Constructor Details
-
ModFileDeleter
-
ModFileDeleter
-
ModFileDeleter
-
ModFileDeleter
-
-
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
-