KInventory
Models a helper class to create bukkit inventories with ease, and provide helper functions to minimize boilerplate code
Bukkit inventories are therefore split into their global slots (0 - size) and their rows (size / 9) - given the inventory type supports rows
An inventory can hold rows, so rows can be reused at any point in the inventory.
Author
Devin
Since
1.0.0
Inheritors
Properties
All animations Identifier maps to the animation
Content of the container
The current animation if one is running
Client side inventory instances
Sets whether the items can be clicked while the inventory is inside an animation
Animation which will be played when the inventory is opened
Views which currently look at the inventory
Functions
Adds the animation
Clears the inventory from all items inside it
Returns the KInventoryHolder of this inventory
Whether the object is currently inside an animation
Notifies the inventory that the given item has been clicked by the given player
Executed when the inventory is closed To catch this the bukkit event is used
Executes the passed function, when a bukkit org.bukkit.inventory.ItemStack is clicked
Executed when the inventory is opened To catch this the bukkit event is used
Starts the given animation, but will not save it
Starts the animation with the given identifier
Constructs the bukkit inventory from this KInventory with the current set content