ItemAbilityService

Saves an ability ID in an item's data. This does not make the item activate that ability.

Inheritors

Functions

Link copied to clipboard
abstract fun assign(item: ItemStack, abilityId: String)

Saves abilityId on item.

Link copied to clipboard
abstract fun get(item: ItemStack): String?

Returns the saved ability ID, or null if there is none.

Link copied to clipboard
abstract fun remove(item: ItemStack)

Removes the saved ability ID from item.