-
Notifications
You must be signed in to change notification settings - Fork 22
Installation
Inventory Framework releases are published on Maven Central repository
repositories {
mavenCentral()
}
dependencies {
implementation 'me.devnatan:inventory-framework-platform-bukkit:3.2.0'
}
Inventory Framework development builds are published on Maven Central Snapshots Repository
repositories {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
PaperSpigot with Kyori's Adventure support
Only needed if you use Inventory Framework as a shaded library in your project.
implementation 'me.devnatan:inventory-framework-platform-paper:3.2.0'
There is a good chance that the inventory-framework library will be used in different plugins within your server, these plugins share the same classpath, if a plugin is using a different version of the IF compared to the others there will be a version conflict because it has been shaded inside that plugin.
-
Install IF latest version for your platform on Github Releases.
-
Add the inventory framework as a dependency of your plugin to be able to access it.
depend: [ InventoryFramework ]
-
Put the downloaded platform plugin in your
plugins
directory.
Note: When you have the IF in your plugins you shouldn't compile them together with your projects, but put them as a
compileOnly
andruntimeOnly
dependency in Gradle and scopedprovided
in Maven.
First, you need to get the notation of this feature to apply it in your project, usually in the "Project Setup" section of the documentation of that feature you can get this information.
In this example we will use the Anvil Input feature.
- Include the dependency on your project.
dependencies {
implementation 'me.devnatan:inventory-framework-anvil-input:3.2.0'
}
- You can apply it so much locally that it's recommended if you need to control which frameworks can have this feature.\
import static me.devnatan.inventoryframework.AnvilInputFeature.AnvilInput;
viewFrame.install(AnvilInput);
And that's it, you now have the feature installed, go to that feature's documentation to learn how to use it.