nova-parent
Toggle table of contents
0.18-alpha.14
main
Platform filter
main
Switch theme
Search in API
nova-parent
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.