Skip to content

SmartInvs 1.2.0 - Features & Fixes

Compare
Choose a tag to compare
@MinusKube MinusKube released this 17 Jun 22:20
· 42 commits to master since this release

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.