public class ModrinthIntegration extends Integration
folder, logger| Constructor and Description |
|---|
ModrinthIntegration(fr.flowarg.flowlogger.ILogger logger,
java.nio.file.Path folder)
Default constructor of a basic Integration.
|
| Modifier and Type | Method and Description |
|---|---|
Mod |
fetchMod(@NotNull ModrinthVersionInfo versionInfo) |
ModrinthModPack |
getCurseModPack(ModrinthModPackInfo info)
Get a CurseForge's mod pack object with a project identifier and a file identifier.
|
Mod |
parseModFile(@NotNull com.google.gson.JsonObject version) |
public ModrinthIntegration(fr.flowarg.flowlogger.ILogger logger,
java.nio.file.Path folder)
throws java.lang.Exception
logger - the logger used.folder - the folder where the plugin can work.java.lang.Exception - if an error occurred.public Mod fetchMod(@NotNull @NotNull ModrinthVersionInfo versionInfo) throws java.lang.Exception
java.lang.Exceptionpublic Mod parseModFile(@NotNull @NotNull com.google.gson.JsonObject version)
public ModrinthModPack getCurseModPack(ModrinthModPackInfo info) throws java.lang.Exception
info - CurseForge's mod pack info.java.lang.Exception - if an error occurred.