get

abstract fun get(id: String): NovaItem
abstract fun get(id: NamespacedId): NovaItem

Gets the NovaItem with the specified id.

Return

The NovaItem with the specified id.

Parameters

id

The id of the item.

Throws

If there is no NovaItem with the specified id.


abstract fun get(itemStack: ItemStack): NovaItem

Gets the NovaItem of the specified ItemStack.

Return

The NovaItem of the specified ItemStack.

Parameters

itemStack

The ItemStack to get the NovaItem for.

Throws

If the ItemStack is not a Nova item.