Registry Util
abstract class RegistryUtil<TContent>(modId: String, registry: RegistryKey<Registry<TContent>>) : RegistryKeyUtil<TContent> (source)
Utility class to register content to Minecraft registries.
Parameters
TContent
The type of the content to register
mod Id
The namespace of the content to register.
registry
The registry to register the content in
Inheritors
Inherited properties
Functions
Inherited functions
Link copied to clipboard
fun RegistryKey<TContent>.getEntry(registryManager: DynamicRegistryManager): RegistryEntry.Reference<TContent>?
Gets the registry entry of the given registry key from the given registry manager or null
, if it's not found.
Link copied to clipboard
Creates an Identifier from the namespace specified in the constructor and a given path.
Link copied to clipboard
Creates a RegistryKey from the registry and namespace specified in the constructor and a given path.