Advanced Inventory API for your Minecraft Bukkit plugins.
*Tested Minecraft (Bukkit derivatives) versions: 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19, 1.20, 1.21
**Tested Folia versions: 1.20
You can use this as a Plugin, or use it as a library (see the docs)
- Inventories of any type (workbench, chest, furnace, ...)
- Customizable size when possible (chest, ...)
- Custom titles
- Allows to prevent the player from closing its inventory
- Custom listeners for the event related to the inventory
- Iterator for inventory slots
- Page system
- Util methods to fill an inventory's row/column/borders/...
- Actions when player clicks on an item
- Update methods to edit the content of the inventory every tick
Click here to read the docs on Gitbooks
To use the SmartInvs API, either:
- Put it in the
plugins
folder of your server, add it to your dependencies in your plugin.yml (e.g.depend: [SmartInvs]
) and add it to the dependencies in your IDE. - Put it inside your plugin jar, initialize an
InventoryManager
in your plugin (don't forget to call theinit()
method), and add a.manager(invManager)
to your SmartInventory Builders.
You can download the latest version on the Releases page on Github.
You can also use a build system:
repositories {
mavenCentral()
maven {
url "https://raw.github.com/dominicfeliton/SmartInvs/bukkit-maven-repo"
}
}
dependencies {
compile 'fr.minuskube.inv:bukkit-smart-invs:1.3.5'
}
<dependency>
<groupId>fr.minuskube.inv</groupId>
<artifactId>bukkit-smart-invs</artifactId>
<version>1.3.5</version>
</dependency>
NOTE: If you are on folia, just change all mentions of "bukkit" above to folia instead.
- Add some Javadocs
If you have a problem with the API, or you want to request a feature, make an issue here.