SmartInvs

Advanced Inventory API for your Minecraft Bukkit plugins.

APACHE-2.0 License

Stars
258
Committers
7

Bot releases are hidden (Show)

SmartInvs - SmartInvs 1.2.7 - 1.7 is back Latest Release

Published by MinusKube over 5 years ago

Changelog

  • #46 Remove dependency preventing the API from working in 1.7
  • #47 Fixed Pagination#isLast method going one page too far in some cases

Usage

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.

Issues

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

SmartInvs - SmartInvs 1.2.6 - Critical Fix

Published by MinusKube almost 6 years ago

Changelog

  • (Critical) Fixed inventory updated for every player instead of the current player when setting item

Usage

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.

Issues

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

SmartInvs - SmartInvs 1.2.5 - Bug Fixes

Published by MinusKube about 6 years ago

Changelog

  • Fixed ConcurrentModificationException when inventory closing in the update method
  • Fixed SmartInventory#add and SmartInventory#firstEmpty not checking horizontally

Usage

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.

Issues

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

SmartInvs - SmartInvs 1.2.4 - To close or not to close

Published by MinusKube about 6 years ago

Changelog

  • Allowed to update the inventory's closeable property using SmartInventory#setCloseable(boolean)

Usage

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.

Issues

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

SmartInvs - SmartInvs 1.2.3 - Make it work

Published by MinusKube about 6 years ago

Changelog

  • Changed the spigot dependency version to solve compatibility issues with some versions of the game

Usage

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.

Issues

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

SmartInvs - SmartInvs 1.2.2 - Just Fixes

Published by MinusKube about 6 years ago

Changelog

  • Remove contents when inventory closed to let the GC clear the inv
  • (Potential breaking change) Make SlotIterator allowOverride default to true
  • Fix Pagination#last() sending to the wrong page
  • Fix SlotIterator#started() sometimes being wrong

Usage

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.

Issues

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

SmartInvs - SmartInvs 1.2.1 - Fix it all

Published by MinusKube over 6 years ago

Changelog

  • Fixed a bug which caused the ClickableItem consumer calling three times when double clicking
  • Fixed a bug where the SlotIterator replaced slots it shouldn't replace
  • (Potential breaking change) The SlotIterator now isn't started by default, you must call one of next() or previous() before using it, so it goes at the starting position

Usage

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.

Issues

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

SmartInvs - SmartInvs 1.2.0 - Features & Fixes

Published by MinusKube over 6 years ago

Changelog

  • Allowed to use the API without using it as a plugin
  • Added override setting for the SlotIterator (and then the Pagination)
  • Added firstEmpty method to the InventoryContents which gives the first empty slot
  • Added add method to the InventoryContents which adds an item to the first empty slot
  • Added SlotPos class, with overload to every method using rows and columns
  • Added some exceptions when the inventory sizes are wrong
  • Fixed a graphical bug when using shortcut number keys when clicking on an item which closes the inventory

Usage

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.

Issues

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

SmartInvs - SmartInvs 1.1.3 - Inventory Fix

Published by MinusKube about 7 years ago

Changelog

  • Fixed a bug allowing users to put items in an inventory using Shift + Click

Usage

To use the SmartInvs API, 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.

Issues

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

SmartInvs - SmartInvs 1.1.2 - JavaF(i)X

Published by MinusKube about 7 years ago

Changelog

  • Removed JavaFX Pair class and replaced it by Commons Lang3 one

Usage

To use the SmartInvs API, 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.

Issues

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

SmartInvs - SmartInvs 1.1.1 - Small fix

Published by MinusKube over 7 years ago

Changelog

  • Fixed bug when using uncloseable inventories

Usage

To use the SmartInvs API, 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.

Issues

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

SmartInvs - SmartInvs 1.1.0 - Properties update

Published by MinusKube over 7 years ago

Changelog

  • Added methods to get/set properties to an InventoryContents
  • Added setter methods to change the row and the column of a SlotIterator

Usage

To use the SmartInvs API, 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.

Issues

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

SmartInvs - SmartInvs 1.0.1 - Small fix update

Published by MinusKube over 7 years ago

Changelog

  • Fixed an error when the plugin is disabled while a player has an inventory opened

Usage

To use the SmartInvs API, 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.

Issues:

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

SmartInvs - SmartInvs 1.0.0

Published by MinusKube over 7 years ago

First version of the SmartInvs API!

Features:

  • 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

Usage

To use the SmartInvs API, 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.

Issues:

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

Package Rankings
Top 24.28% on Repo1.maven.org
Badges
Extracted from project README
License Javadocs
Related Projects