getOrNull

@Nullable
abstract fun getOrNull(@NotNull id: @NotNull String): @Nullable NovaMaterial

Deprecated

Use NovaBlockRegistry and NovaItemRegistry instead.

Gets the NovaMaterial of this id or null if there isn't one.

Return

The NovaMaterial.

Parameters

id

The id of the NovaMaterial in the format namespace:name.


@Nullable
abstract fun getOrNull(@NotNull id: @NotNull NamespacedId): @Nullable NovaMaterial

Deprecated

Use NovaBlockRegistry and NovaItemRegistry instead.

Gets the NovaMaterial of this id or null if there isn't one.

Return

The NovaMaterial.

Parameters

id

The id of the NovaMaterial.


@Nullable
abstract fun getOrNull(@NotNull item: @NotNull ItemStack): @Nullable NovaMaterial

Deprecated

Use NovaBlockRegistry and NovaItemRegistry instead.

Gets the NovaMaterial of this ItemStack or null if there isn't one.

Return

The NovaMaterial of this ItemStack.

Parameters

item

The ItemStack to get the NovaMaterial for.