NovaMaterialRegistry

Deprecated

Use NovaBlockRegistry and NovaItemRegistry instead.

Functions

Link copied to clipboard
@NotNull
abstract fun get(@NotNull id: @NotNull String): @NotNull NovaMaterial
@NotNull
abstract fun get(@NotNull id: @NotNull NamespacedId): @NotNull NovaMaterial
Gets the NovaMaterial of this id or throws an exception if there isn't one.
@NotNull
abstract fun get(@NotNull item: @NotNull ItemStack): @NotNull NovaMaterial
Gets the NovaMaterial of this ItemStack or throws an exception if this ItemStack is not from Nova.
Link copied to clipboard
@NotNull
abstract fun getNonNamespaced(@NotNull name: @NotNull String): @NotNull List<@NotNull NovaMaterial>
Gets a list of NovaMaterials registered under this name in all Nova namespaces.
Link copied to clipboard
@Nullable
abstract fun getOrNull(@NotNull id: @NotNull String): @Nullable NovaMaterial
@Nullable
abstract fun getOrNull(@NotNull id: @NotNull NamespacedId): @Nullable NovaMaterial
Gets the NovaMaterial of this id or null if there isn't one.
@Nullable
abstract fun getOrNull(@NotNull item: @NotNull ItemStack): @Nullable NovaMaterial
Gets the NovaMaterial of this ItemStack or null if there isn't one.