-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added compatiiblity for modpacks from curseforge
- Loading branch information
Showing
20 changed files
with
362 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
CurseForgePlugin/src/main/java/fr/flowarg/flowupdater/curseforgeplugin/CurseModPack.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
package fr.flowarg.flowupdater.curseforgeplugin; | ||
|
||
import java.util.List; | ||
|
||
public class CurseModPack | ||
{ | ||
private final String name; | ||
private final String version; | ||
private final String author; | ||
private final List<CurseModPackMod> mods; | ||
private final boolean installExtFiles; | ||
|
||
public CurseModPack(String name, String version, String author, List<CurseModPackMod> mods, boolean installExtFiles) | ||
{ | ||
this.name = name; | ||
this.version = version; | ||
this.author = author; | ||
this.mods = mods; | ||
this.installExtFiles = installExtFiles; | ||
} | ||
|
||
public String getName() | ||
{ | ||
return this.name; | ||
} | ||
|
||
public String getVersion() | ||
{ | ||
return this.version; | ||
} | ||
|
||
public String getAuthor() | ||
{ | ||
return this.author; | ||
} | ||
|
||
public List<CurseModPackMod> getMods() | ||
{ | ||
return this.mods; | ||
} | ||
|
||
public boolean isInstallExtFiles() | ||
{ | ||
return this.installExtFiles; | ||
} | ||
|
||
public static class CurseModPackMod extends CurseMod | ||
{ | ||
private final boolean required; | ||
|
||
CurseModPackMod(String name, String downloadURL, String md5, int length, boolean required) | ||
{ | ||
super(name, downloadURL, md5, length); | ||
this.required = required; | ||
} | ||
|
||
CurseModPackMod(CurseMod base, boolean required) | ||
{ | ||
this(base.getName(), base.getDownloadURL(), base.getMd5(), base.getLength(), required); | ||
} | ||
|
||
public boolean isRequired() | ||
{ | ||
return this.required; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "CurseForgePlugin", | ||
"pluginClass": "fr.flowarg.flowupdater.curseforgeplugin.CurseForgePlugin", | ||
"version": "1.0.0" | ||
"version": "1.0.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ allprojects { | |
} | ||
} | ||
|
||
version '1.2.5' | ||
version '1.2.6' | ||
archivesBaseName = "flowupdater" | ||
|
||
artifacts { | ||
|
Oops, something went wrong.