API

Developer API Guide

The API allows developers to access registered collections and to progress collections for players. You can also register Custom reward types and reward auto-correctors.

Add the API to your project

Maven

If you are insist on using maven still for whatever reason, you might need to include Aikars ACF repo as well.

pom.xml
<repository>
    <id>auroramc</id>
    <url>https://repo.auroramc.gg/releases/</url>
</repository>
pom.xml
<dependency>
    <groupId>gg.auroramc</groupId>
    <artifactId>AuroraCollections</artifactId>
    <version>1.5.1</version>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>gg.auroramc</groupId>
    <artifactId>Aurora</artifactId>
    <version>2.1.6</version>
    <scope>provided</scope>
</dependency>

Gradle (Groovy)

Gradle (Kotlin)

Get the API instance

You can view how to add Custom rewards and correctors for them here. Though you will need to register them through the CollectionManager.

Progressing collections

This will progress all collections with the block_loottrigger with the given item.

Last updated