Package org.cyclops.cyclopscore.init
Class RegistryManager
java.lang.Object
org.cyclops.cyclopscore.init.RegistryManager
Manager for all the registries in this mod.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<R extends IRegistry>
voidaddRegistry
(Class<R> clazz, R registry) <T extends IRegistry>
TgetRegistry
(Class<T> clazz) Get the unique registry of the given class.
-
Constructor Details
-
RegistryManager
public RegistryManager()Create a new registry manager. Only one should exist per mod.
-
-
Method Details
-
addRegistry
-
getRegistry
Get the unique registry of the given class.- Type Parameters:
T
- The type of registry.- Parameters:
clazz
- The class of the registry.- Returns:
- The unique registry.
-