getOrNull

abstract fun getOrNull(id: String): NovaMaterial

Deprecated

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

Return

The NovaMaterial.

Deprecated

Use NovaBlockRegistry and NovaItemRegistry instead.

Parameters

id

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


Deprecated

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

Return

The NovaMaterial.

Deprecated

Use NovaBlockRegistry and NovaItemRegistry instead.

Parameters

id

The id of the NovaMaterial.


abstract fun getOrNull(item: ItemStack): NovaMaterial

Deprecated

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

Return

The NovaMaterial of this ItemStack.

Deprecated

Use NovaBlockRegistry and NovaItemRegistry instead.

Parameters

item

The ItemStack to get the NovaMaterial for.