getOrNull

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

Gets the NovaItem with the specified id, or null if there is none.

Return

The NovaItem with the specified id, or null if there is none.

Parameters

id

The id of the item.


abstract fun getOrNull(itemStack: ItemStack): NovaItem

Gets the NovaItem of the specified ItemStack, or null if it is not a Nova item.

Return

The NovaItem of the specified ItemStack, or null if it is not a Nova item.

Parameters

itemStack

The ItemStack to get the NovaItem for.