Interface IForgeRegistry<V extends IForgeRegistryEntry<V>>

  • Type Parameters:
    V - The top level type for the registry
    All Superinterfaces:
    java.lang.Iterable<V>
    All Known Subinterfaces:
    IForgeRegistryInternal<V>, IForgeRegistryModifiable<V>
    All Known Implementing Classes:
    ForgeRegistry

    public interface IForgeRegistry<V extends IForgeRegistryEntry<V>>
    extends java.lang.Iterable<V>
    Main interface for the registry system. Use this to query the registry system.
    • Method Detail

      • getRegistrySuperType

        java.lang.Class<V> getRegistrySuperType()
      • register

        void register​(V value)
      • registerAll

        void registerAll​(V... values)
      • containsValue

        boolean containsValue​(V value)
      • isEmpty

        boolean isEmpty()
      • getValues

        @Nonnull
        java.util.Collection<V> getValues()
      • getEntries

        @Nonnull
        java.util.Set<java.util.Map.Entry<RegistryKey<V>,​V>> getEntries()
      • getSlaveMap

        <T> T getSlaveMap​(ResourceLocation slaveMapName,
                          java.lang.Class<T> type)
        Retrieve the slave map of type T from the registry. Slave maps are maps which are dependent on registry content in some way.
        Type Parameters:
        T - Type to return
        Parameters:
        slaveMapName - The name of the slavemap
        type - The type
        Returns:
        The slavemap if present