Add separate util class

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad
2022-11-12 12:55:31 +00:00
parent b544661e81
commit 8a81aaaa0a
5 changed files with 177 additions and 58 deletions

View File

@@ -39,10 +39,25 @@ import org.prismlauncher.utils.Parameters;
public interface Fix {
/**
* Gets the name of the fix. If the name isn't passed into the program, the fix
* won't run.
*
* @return The name
*/
String getName();
boolean isApplicable(Parameters parameters);
/**
* Determines whether the fix will be run. This is additional to the name check.
*
* @param params The parameters
* @return <code>true</code> to proceed to applying the fix
*/
boolean isApplicable(Parameters params);
/**
* Applies the fix.
*/
void apply();
}