NovaMaterialRegistry

Deprecated

Deprecated

Use NovaBlockRegistry and NovaItemRegistry instead.

Functions

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