getOrNull

abstract fun getOrNull(id: String): 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.


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.


abstract fun getOrNull(item: ItemStack): 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.