Base KInventory
Example implementation of a generic inventory
Author
Devin
Since
1.0.0
Parameters
holder of the inventory
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