CurseForge.NET

CurseForge.NET Library
The CurseForge.NET library is a client library developed to interact with the CurseForge API, allowing users to search for and access information about Minecraft mods, modpacks, resource packs, and worlds hosted on CurseForge. This library provides a convenient way to access and download files from CurseForge projects.
Getting Started
To use the CurseForge.NET library, you need to create an instance of the CurseforgeClient class and pass your API key as a parameter to authenticate with the CurseForge API.
Searching for Projects
You can search for various types of projects, such as mods, modpacks, resource packs, and worlds, using the CurseforgeClient's search methods.
Searching for Modpacks
Searching for Mods
Searching for Worlds
Searching for Resource Packs
Getting Individual Projects
You can retrieve information about individual projects by their project ID using the corresponding Get methods.
Get Mod Information
Get Modpack Information
Get Resource Pack Information
Get World Information
Getting Project Files
You can retrieve a list of files associated with a project using the corresponding GetFiles methods.
Get Mod Files
Get Modpack Files
Get Resource Pack Files
Get World Files
Getting Specific Project Files
You can retrieve information about a specific file associated with a project using the corresponding GetFile methods.
Get Mod File Information
Get Modpack File Information
Get Resource Pack File Information
Get World File Information
Downloading Project Files
You can download project files using the Download methods.
Downloading Mod File
Downloading Modpack File
Downloading Resource Pack File
Downloading World File
Example
In these code examples, we first create an instance of the CurseforgeClient class and pass the API key as a parameter. Then, we demonstrate various operations such as searching for projects, retrieving project information, getting project files, and downloading files.
Please note that you need to replace "YOUR_API_KEY" with your actual CurseForge API key to authenticate with the CurseForge API.
The provided code examples give an overview of how to use the CurseForge.NET library to interact with the CurseForge API. You can further customize and expand the code based on your specific use case and requirements.
Please ensure to handle exceptions and error cases in your code when using the CurseForge.NET library. The provided examples demonstrate basic usage, and you can further customize and utilize the library based on your specific needs. For more information and additional features of the CurseForge.NET library, refer to the library's documentation and API reference.
Last updated
Was this helpful?