Registry Key Util
Utility class to create Identifiers and RegistryKeys using a specified namespace and registry.
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
Constructors
Link copied to clipboard
public RegistryKeyUtil<TContent> RegistryKeyUtil<TContent extends Any>(String modId, RegistryKey<Registry<TContent>> registry)
Properties
Functions
Link copied to clipboard
public final RegistryEntry.Reference<TContent> getEntry(RegistryKey<TContent> $self, DynamicRegistryManager registryManager)
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
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.