StackableKItem

interface StackableKItem : KItem

Models a stackable kItem

The difference between KItem is that this item won't be registered in the ItemManager and therefore is also not able to handle the de.staticred.kia.inventory.item.RegisteredKItem.onClick event

In regard to that, the item can be stacked, also with vanilla style generated items, even if the item was not generated using KIA.

Example usage, would be an item, which can be withdrawn from the inventory.

Since

1.0.2

Author

Devin

Inheritors

Properties

Link copied to clipboard

Determines the behaviour of the item when being dragged around the inventory

Link copied to clipboard

The parent inventory, the item is inside of

Link copied to clipboard
abstract var slot: Int

Slot of the item in the parent inventory, if the parent inventory is set

Functions

Link copied to clipboard
abstract fun draggable(): Boolean
Link copied to clipboard
abstract fun enchant(enchantment: Enchantment, level: Int)

Enchants this item with the given parameters

Link copied to clipboard
abstract fun setDisplayName(name: Component)

Sets the display name of the item

Link copied to clipboard
abstract fun setItemLore(lore: List<Component>)

Sets the lore of the item

Link copied to clipboard
abstract fun toItemStack(): ItemStack

Transforms the KItem to a Bukkit ItemStack