getOrNull

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


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