Class GameRegistry

java.lang.Object
net.minecraftforge.fmllegacy.common.registry.GameRegistry

public class GameRegistry extends Object
  • Constructor Details

    • GameRegistry

      public GameRegistry()
  • Method Details

    • findRegistry

      public static <K extends IForgeRegistryEntry<K>> IForgeRegistry<K> findRegistry(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.