Setting up the API
The primary way to add the Advanced Door Bells API as a dependency in your addon project is to add the Modrinth's maven repository.
In build.gradle:
repositories {
// ...
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
}
dependencies {
// ...
implementation "maven.modrinth:p2WB9yO9:<version-id>"
}
Replace the <version-id> with the appropriate version id for your project.
Your fabric.mod.json should also declare Advanced Door Bells as a dependency:
"depends": {
// ...
"advanced-door-bells": "1.2"
}
Then you can import net.smilenotalive.advanceddoorbells.api.DoorBellApi in your classes.