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.
If you are insist on using maven still for whatever reason, you might need to include Aikars ACF repo as well.
Copy <repository>
<id>auroramc</id>
<url>https://repo.auroramc.gg/releases/</url>
</repository>
Copy <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>
Copy repositories {
maven {
url "https://repo.auroramc.gg/releases/"
}
}
dependencies {
compileOnly 'gg.auroramc:Aurora:2.1.6'
compileOnly 'gg.auroramc:AuroraCollections:1.5.1'
}
Copy repositories {
maven("https://repo.auroramc.gg/releases/")
}
dependencies {
compileOnly("gg.auroramc:Aurora:2.1.6")
compileOnly("gg.auroramc:AuroraCollections:1.5.1")
}
Copy import gg.auroramc.collections.api.AuroraCollectionsProvider;
import gg.auroramc.collections.collection.CollectionManager;
CollectionManager manager = AuroraCollectionsProvider.getCollectionManager()
Copy ItemStack myItem = ...;
TypeId typeId = AuroraAPI.getItemManager().resolveId(myItem);
int amount = myItem.getAmount();
manager.progressCollections(player, typeId, amount, Trigger.BLOCK_LOOT);