This is a modified version of the original NoteBlockAPI plugin, designed to let developers shade the API directly into their plugin without requiring the separate NoteBlockAPI plugin to be installed on the server.
Important: According to the original authors’ license, your plugin must be open-source if you shade this code into your plugin.
This project also aims to support newer Minecraft versions (1.20+) only, while cleaning up and modernizing the existing codebase.
<repository>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repository>
<dependencies>
<dependency>
<groupId>com.github.File14</groupId>
<artifactId>NoteBlockAPI</artifactId>
<version>1.6.5-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>repositories {
maven {
url 'https://jitpack.io/'
}
}
dependencies {
compileOnly "com.github.File14:NoteBlockAPI:1.6.5-SNAPSHOT"
}You can initialize the api using:
NoteBlockAPI noteBlockAPI = NoteBlockAPI.init(this);On plugin disable:
NoteBlockAPI.shutdown();