Class RegistryList<T extends IRegistryType>

java.lang.Object
net.minheur.potoflux.registry.RegistryList<T>
Type Parameters:
T - the type of registry item that the registry stores

public class RegistryList<T extends IRegistryType> extends Object
This class is used to store all elements of an event, for a specific mod.
Create one in your registering class, then add your items to it.
  • Constructor Details

    • RegistryList

      public RegistryList()
  • Method Details

    • add

      public T add(T item)
      Method to add an item to the registry.
      Parameters:
      item - item to add
      Returns:
      the item added, or null if already added
    • register

      public void register(IRegistry<T> reg)
      Registering all items in an actual registry.
      Parameters:
      reg - the registry to add the items to