get

@NotNull
abstract fun get(@NotNull id: @NotNull String): @NotNull NovaItem
@NotNull
abstract fun get(@NotNull id: @NotNull NamespacedId): @NotNull 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.


@NotNull
abstract fun get(@NotNull itemStack: @NotNull ItemStack): @NotNull 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.