Kt Inventory
Abstract inventory class that creates an inventory with a customizable title. Extends AbstractKtInventory to provide basic inventory functionality.
Since
2.0.0
Parameters
The plugin instance
Number of inventory rows
Character used for color codes in the title. Default is '&'. Set to null to disable color code translation.
Properties
Functions
Adds an existing button to a single slot
Adds an existing button to multiple slots
Adds a button to a single slot with the given item and click handler
Adds a button to multiple slots with the given item and click handler
Creates a new inventory button with the specified item and click handler
Gets all storables that have the given slot
Gets all storables that have any of the given slots
Called when bottom inventory is clicked
Saves the state of all storable components in this inventory
Add a storable component using all slots in the inventory
Add a storable component with the specified slot numbers