SmartInvs - Advanced Inventory API 1.2.7

Advanced Inventory API for your Minecraft Bukkit plugins.

  1. MinusKube
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    Source Code:
    https://github.com/MinusKube/SmartInvs
    [​IMG]
    SmartInvs is an advanced Inventory API for your Minecraft Bukkit plugins.


    [​IMG]

    • 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


    [​IMG]

    The source code of this API is available here!



    [​IMG]

    Click here to read the docs on Gitbooks



    [​IMG]

    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 the init() method), and add a .manager(invManager) to your SmartInventory Builders.

    You can download the latest version on the Releases page on Github.
    It is also recommended to use a build system:

    Gradle
    Code (Text):
    repositories {
        mavenCentral()
    }

    dependencies {
        compile 'fr.minuskube.inv:smart-invs:1.2.7'
    }

    Maven
    Code (Text):
    <dependency>
      <groupId>fr.minuskube.inv</groupId>
      <artifactId>smart-invs</artifactId>
      <version>1.2.7</version>
    </dependency>


    [​IMG]

    If you have a problem with the API, or you want to request a feature, make an issue here.

Recent Reviews

  1. class70635
    class70635
    5/5,
    Version: 1.2.7
    awesome library , but I have a question:how to put an item into the gui from player's inventory? or take it out?
    1. MinusKube
      Author's Response
      Thanks :)

      It's currently quite difficult, you can try using InventoryListeners or directly using Bukkit events. But you'll be able to do it more easily in a next update.
  2. GamingCraft_hd
    GamingCraft_hd
    5/5,
    Version: 1.2.6
    Amazing API/Libary, Easy to use it.

    I had no problems yet, hopefully you will release a update soon...

    I recommend it! :D
    1. MinusKube
      Author's Response
      Thank you very much, I'm currently working on a quite big update :D
  3. Franchiccosd
    Franchiccosd
    5/5,
    Version: 1.2.6
    how can i make a text that change color?
    -----------------------------------------------
    1. MinusKube
      Author's Response
      Use the update() method from your InventoryProvider, it is called every tick for every player which has the inventory opened. There is an example for this on the docs :)
  4. iTexZoz
    iTexZoz
    5/5,
    Version: 1.2.6
    Just awesome library,

    I started using your library a few days ago and I can't separate anymore!

    I recommend it!
    1. MinusKube
      Author's Response
      Thank you very much <3
  5. SamB440
    SamB440
    5/5,
    Version: 1.2.6
    Started using this recently, pretty good. I only wish the documentation was a bit better - needs a javadoc pretty much. Overall I'd definitely recommend using this - UI's are so annoying and this makes it a lot easier.
    1. MinusKube
      Author's Response
      Thank you very much, better documentation and javadoc will come on the next big update (1.3.0) which I'm currently working on :)
  6. Sytm
    Sytm
    4/5,
    Version: 1.2.5
    I love this plugin. With it you can create GUIs easily.
    BUT there is one thing thats really really annoying: Lets say you want add items with a for-loop: You have to convert the slot number to rows/columns all the time which is very annoying! (For anyone wondering: int column = i % 9;int row = (i - column) / 9;)Soo please change or add that you can set items via slot number, but elsewise: Perfect Plugin and easy to use.

    Pls add sum more Documentation.
    1. MinusKube
      Author's Response
      Thanks for your feedback, I'll add a way to set items using slot numbers. And I'm currently reworking the documentation (though it will take some time) :)
  7. Ytnoos
    Ytnoos
    5/5,
    Version: 1.2.5
    Just awesome library, i hope it will be updated soon. --------------------------
  8. eXpresS
    eXpresS
    5/5,
    Version: 1.2.5
    Very nice and important plugin for my server is usefull for everybody who is too much lazy for creating own "system" as this. Is eazy to use for everybody.
  9. MonkeyMatt
    MonkeyMatt
    4/5,
    Version: 1.2.5
    I'm going to be honest, this is the best API for Inventories in Bukkit. You might ask yourself why I'm giving it only 4 starts though => I feel like the documentation is a bit plain. E.g. I found it hard to figure out how to use the Manager and InventoryContents. Other than that this is a superb resource if you don't want to make an Inventory API yourself!
    1. MinusKube
      Author's Response
      Thanks, I'll try to improve the documentation :)
  10. Her3sy
    Her3sy
    5/5,
    Version: 1.2.5
    This plugin is still perfect lol -------------------------------------------------------