Members
-
<static, readonly> SORT_TYPES :number
-
Description
Helper Object for variations of sort optionsProperties
Name Type Default Description FEATUREDnumber 0 POPULARITYnumber 1 LAST_UPDATEnumber 2 NAMEnumber 3 AUTHORnumber 4 TOTAL_DOWNLOADSnumber 5 Details
-
<static, readonly> DEPENDENCY_TYPE :number
-
Description
Helper Object for types of dependencies and incompatibilities.Properties
Name Type Default Description EMBEDDED_LIBRARYnumber 1 OPTIONALnumber 2 REQUIREDnumber 3 TOOLnumber 4 INCOMPATIBLEnumber 5 INCLUDEnumber 6 Details
Methods
-
<inner> getMods( options, callback ) → {Promise.<Array.<Mod>, Error>}
-
Description
Get an overview of all possible mods.Parameters
Name Type Description optionsObject A Object containing optional parameters. Name Type Description gameVersionstring The Minecraft version string to use. ("1.12.2", "1.13") searchFilterstring Term to search for. indexnumber The page to use. pageSizenumber The amount of items to show per page. (Limit 500) sortnumber The method to sort with @see SORT_TYPES callbackfunction Optional callback to use instead of Promise. Returns
Details
-
<inner> getMod( identifier, callback ) → {Promise.<Mod, Error>}
-
Description
Get information about a specific mod using the identifier.Parameters
Name Type Description identifiernumber The mods curse id to find the mod with. callbackfunction Optional callback to use instead of Promise. Returns
Details
-
<inner> getModFiles( identifier, callback ) → {Promise.<Array.<ModFile>, Error>}
-
Description
Get information about the releases of a specific mod.Parameters
Name Type Description identifiernumber The mods curse id to find the mod with. callbackfunction Optional callback to use instead of Promise. Returns
Details
-
<inner> getModDescription( identifier, callback ) → {Promise.<string, Error>}
-
Description
Get the html string for the mod description.Parameters
Name Type Description identifiernumber The mods curse id to find the mod with. callbackfunction Optional callback to use instead of Promise. Returns
Details