Banana Inventory API

BananaInventoryAPI

What this is:
This API provides a basic framework for creating complex inventory menus and more. It is very easy to use and supports all the versions back to 1.5.2. The API itself does not provide any functionality by itself.

How this works:
The API itself is split up into several components. It includes the custom inventory, inventory components, content panes, and action items.

The Custom Inventory:
This is the top level object you will use to manage each inventory. It consists of inventory components, which include buttons and panels. It also has handy methods that can auto-sort the panels and provide detailed information about an inventory click event.

The Inventory Components:
Inventory components are divided into two categories: button components and inventory panels. Buttons contain a single button item, and take up exactly one slot. Inventory panels are re-sizable containers that hold content panes. They do not contain any actual items themselves.

Content Panes:
Content panes are also separated into two categories: action item panes and storage panes. Both are very similar, but action item panes hold action items, where as storage panes hold actual items. Content panes are hide-able and contain items. They automatically resize themselves to fit within the inventory panel they are placed in. Content panes can also have custom sorters, to organize the items in a particular fashion.

Action Items:
Action items and button items are items that hold a list of actions, an action intention, and an actual item. You can use these to execute methods based on what their actions are. They are also used in turning pages of a paged object.

Sounds cool. So how do I use this?
If you are a developer, download the jar and import it as an external jar into your project. If you are a server owner, install this like a regular plugin, but only if you have a plugin that depends on this.

For those of you who want more:
BananaInventoryAPI is built around interfaces and abstract classes, so it's perfectly possible and quite easy to create your own custom inventories, panels, panes, and sorters. Each element has its own interface/abstract class you can inherit/extend and you can play around with the different options it provides.

Bugs? Issues? Changes you want? PM me here and I'll see what I can do.

 

Some plugins that use this API:

 

Download

File Name Status Version Downloads Date
Banana Inventory API v2 R 1.12 +27 241 11/07/2017
Banana Inventory API 1.20.2 Updating 1.20.2 Updating Updating
Banana Inventory API 1.20.1 Updating 1.20.1 Updating Updating
Banana Inventory API 1.20 Updating 1.20 Updating Updating
Banana Inventory API 1.19.2 Updating 1.19.2 Updating Updating
Banana Inventory API 1.19.1 Updating 1.19.1 Updating Updating
Banana Inventory API 1.19 Updating 1.19 Updating Updating
Banana Inventory API 1.18 Updating 1.18 Updating Updating
Banana Inventory API 1.17.1 Updating 1.17.1 Updating Updating
Banana Inventory API Forge Updating Forge Updating Updating
Banana Inventory API Fabric Updating Fabric Updating Updating
Banana Inventory API
Banana Inventory API

Dear youtuber!
Have you a channel youtube and want to bring your Video to quality visitors?
Do you want your video to appear on our website?
Do you want to become partner with us?
Just 3 steps to become our partner:
Step 1: Make video review for mods, addons, plugins, ... which you like
Step 2: Upload this video to youtube and our link to your video description
Step 3: Send the youtube video link via message to http://fb.com/9lifehack or leave a comment in the post. We will add your video in the our post, it will help you have more view.
JOIN to get more youtube view with us!!!!

Related Posts

Smarty Productivity Happiness

9LifeHack.com - make things smart