Class KarmaUpdaterGenerator
java.lang.Object
ml.karmaconfigs.api.common.version.util.KarmaUpdaterGenerator
Karma update file generator
-
Constructor Summary
ConstructorsConstructorDescriptionKarmaUpdaterGenerator(KarmaSource owner)Initialize the karma update file generator -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangelog(String... changelog)Add a line to the changelogvoidaddChangelog(List<String> changelog)Add the lines to the changelogvoidClear the changelogGenerate the filevoidremoveChangelog(int... indexes)Remove the changelog linesvoidsetChangelog(String... changelog)Set the changelogvoidsetChangelog(List<String> changelog)Set the changelogvoidsetUpdateURL(URL url)Set the update URL
-
Constructor Details
-
KarmaUpdaterGenerator
Initialize the karma update file generator- Parameters:
owner- the file source
-
-
Method Details
-
addChangelog
Add a line to the changelog- Parameters:
changelog- the changelog lines
-
addChangelog
Add the lines to the changelog- Parameters:
changelog- the changelog lines
-
removeChangelog
public void removeChangelog(int... indexes)Remove the changelog lines- Parameters:
indexes- the indexes to remove
-
clearChangelog
public void clearChangelog()Clear the changelog -
setChangelog
Set the changelog- Parameters:
changelog- the changelog
-
setChangelog
Set the changelog- Parameters:
changelog- the changelog
-
setUpdateURL
Set the update URL- Parameters:
url- the url
-
generate
Generate the file- Parameters:
name- the file name- Returns:
- the generated file
-