CurseForgeResource class

CurseForge API Documentation: https://docs.curseforge.com

Constructors

CurseForgeResource(APIHttpClient httpClient)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
httpClient → APIHttpClient
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCategories({required CurseForgeGames game, int? classId}) Future<List<CurseForgeCategory>>
Get all available classes and categories of the specified game. Specify a game id for a list of all game categories, or a class id for a list of categories under that class.
getFiles(List<int> fileIds) Future<List<CurseForgeModFile>>
Get a list of files.
getFilesByFingerprint(List<int> fingerprints) Future<List<CurseForgeModFile>>
Get mod files that match a list of fingerprints.
getFilesByFingerprintFuzzy(CurseForgeGames game, List<CurseForgeFolderFingerprint> fingerprints) Future<List<CurseForgeModFile>>
Get mod files that match a list of fingerprints using fuzzy matching.
getMinecraftVersion(String gameVersionString) Future<CurseForgeMinecraftGameVersion>
Get specific minecraft game version
getMinecraftVersions() Future<List<CurseForgeMinecraftGameVersion>>
Get minecraft game versions
getMod(int modID) Future<CurseForgeMod>
Get a single mod.
getModDescription(int modID) Future<String>
Get the full description of a mod in HTML format.
getModFile(int modID, int fileID) Future<CurseForgeModFile>
Get a single file of the specified mod.
getModFileChangelog(int modId, int fileID) Future<String>
Get the changelog of a file in HTML format.
getModFileDownloadUrl(int modID, int fileId) Future<String?>
Get a download url for a specific file.
getModFiles(int modID, {String? gameVersion, CurseForgeModLoaderType? modLoaderType, int? gameVersionTypeId, int? index, int? pageSize}) Future<List<CurseForgeModFile>>
Get all files of the specified mod.
getMods(List<int> modIds) Future<List<CurseForgeMod>>
Get a list of mods.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
searchMods({required CurseForgeGames game, int? classId, int? categoryId, String? gameVersion, String? searchFilter, CurseForgeSortField? sortField, CurseForgeSortOrder sortOrder = CurseForgeSortOrder.desc, CurseForgeModLoaderType? modLoaderType, int? gameVersionTypeId, String? slug, int? index, int? pageSize}) Future<List<CurseForgeMod>>
Get all mods that match the search criteria.
setApiKey(String? apiKey) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited