NovaItemRegistry

Functions

Link copied to clipboard
abstract fun get(itemStack: ItemStack): NovaItem
Gets the NovaItem of the specified ItemStack.
abstract fun get(id: String): NovaItem
abstract fun get(id: NamespacedId): NovaItem
Gets the NovaItem with the specified id.
Link copied to clipboard
abstract fun getNonNamespaced(name: String): List<NovaItem>
Gets a list of NovaItems with the specified name, ignoring the namespace.
Link copied to clipboard
abstract fun getOrNull(itemStack: ItemStack): NovaItem
Gets the NovaItem of the specified ItemStack, or null if it is not a Nova item.
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.