NovaItemRegistry

Functions

Link copied to clipboard
@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.
@NotNull
abstract fun get(@NotNull itemStack: @NotNull ItemStack): @NotNull NovaItem
Gets the NovaItem of the specified ItemStack.
Link copied to clipboard
@NotNull
abstract fun getNonNamespaced(@NotNull name: @NotNull String): @NotNull List<@NotNull NovaItem>
Gets a list of NovaItems with the specified name, ignoring the namespace.
Link copied to clipboard
@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.
@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.