Class GameRegistry
- java.lang.Object
-
- net.minecraftforge.fml.common.registry.GameRegistry
-
public class GameRegistry extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GameRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <K extends IForgeRegistryEntry<K>>
IForgeRegistry<K>findRegistry(java.lang.Class<K> registryType)
Retrieves the registry associated with this super class type.
-
-
-
Method Detail
-
findRegistry
public static <K extends IForgeRegistryEntry<K>> IForgeRegistry<K> findRegistry(java.lang.Class<K> registryType)
Retrieves the registry associated with this super class type. If the return is non-null it is HIGHLY recommended that modders cache this value as the return will never change for a given type in a single run of Minecraft once set.- Parameters:
registryType
- The base class of items in this registry.- Returns:
- The registry, Null if none is registered.
-
-