public class CurseForgeIntegration extends Integration
Modifier and Type | Class and Description |
---|---|
static class |
CurseForgeIntegration.CurseForgeException |
folder, logger
Constructor and Description |
---|
CurseForgeIntegration(fr.flowarg.flowlogger.ILogger logger,
java.nio.file.Path folder)
Default constructor of a basic Integration.
|
Modifier and Type | Method and Description |
---|---|
Mod |
fetchMod(CurseFileInfo curseFileInfo) |
java.lang.String |
fetchModLink(@NotNull CurseFileInfo curseFileInfo) |
CurseModPack |
getCurseModPack(CurseModPackInfo info)
Get a CurseForge's mod pack object with a project identifier and a file identifier.
|
public CurseForgeIntegration(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(CurseFileInfo curseFileInfo) throws CurseForgeIntegration.CurseForgeException
public java.lang.String fetchModLink(@NotNull @NotNull CurseFileInfo curseFileInfo)
public CurseModPack getCurseModPack(CurseModPackInfo info) throws java.lang.Exception
info
- CurseForge's mod pack info.java.lang.Exception
- if an error occurred.