KIA is a library aimed to make inventory handling as easy as possible, without having to use boilerplate code, such as listening to events and having to mind about inventory titles.
Installation
To install KIA, simply put the following code into your onEnabale() function:
Code (Kotlin):
overridefun onEnable
(){ KIA.
create(this) }
Key Features
Title-free inventory management
Easy onClick methods to listen to events
Easy to use onOpen / onClose function
NBT based Item management
Easy to use Animations
Lots of utility functions
Pagination inventories
Managed WiKi
Code examples
Creating inventories:
Code (Kotlin):
val inv
= kInventory
(sender,
3.
rows, InventoryType.
CHEST){ }
Creating items:
Code (Kotlin):
val item
= kItem
(Material.
IRON_PICKAXE){}
Listening to items:
Code (Kotlin):
val item
= kItem
(Material.
IRON_PICKAXE){ onClick
{ registeredKItem, player
->