Registry Util
public abstract class RegistryUtil<TContent extends Object> extends RegistryKeyUtil<TContent>(source)
Utility class to register content to Minecraft registries.
Parameters
TContent
The type of the content to register
Inheritors
Constructors
Link copied to clipboard
protected RegistryUtil<TContent> RegistryUtil<TContent extends Any>(String modId, RegistryKey<Registry<TContent>> registry)
Creates a new RegistryUtil instance.
protected RegistryUtil<TContent> RegistryUtil<TContent extends Any>(String modId, IForgeRegistry<TContent> registry)
Creates a new RegistryUtil instance.
Inherited properties
Functions
Inherited 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.