get

abstract fun get(id: String): NovaMaterial

Deprecated

Gets the NovaMaterial of this id or throws an exception 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

Throws

If there is no NovaMaterial of that id.


abstract fun get(id: NamespacedId): NovaMaterial

Deprecated

Gets the NovaMaterial of this id or throws an exception if there isn't one.

Return

The NovaMaterial.

Deprecated

Use NovaBlockRegistry and NovaItemRegistry instead.

Parameters

id

The id of the NovaMaterial.

Throws

If there is no NovaMaterial of that id.


abstract fun get(item: ItemStack): NovaMaterial

Deprecated

Gets the NovaMaterial of this ItemStack or throws an exception if this ItemStack is not from Nova.

Return

The NovaMaterial of this ItemStack.

Deprecated

Use NovaBlockRegistry and NovaItemRegistry instead.

Parameters

item

The ItemStack to get the NovaMaterial for.

Throws

If there is no NovaMaterial for that id.