toggle menu
nova-parent
0.17-alpha.34
main
switch theme
search in API
nova-api
/
xyz.xenondevs.nova.api.item
/
NovaItemRegistry
Nova
Item
Registry
interface
NovaItemRegistry
Members
Functions
get
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.
get
Non
Namespaced
Link copied to clipboard
abstract
fun
getNonNamespaced
(
name
:
String
)
:
List
<
NovaItem
>
Gets a list of
NovaItems
with the specified name, ignoring the namespace.
get
Or
Null
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.