Package net.minheur.potoflux.registry
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
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.
Create one in your registering class, then add your items to it.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RegistryList
public RegistryList()
-
-
Method Details
-
add
Method to add an item to the registry.- Parameters:
item- item to add- Returns:
- the item added, or null if already added
-
register
Registering all items in an actual registry.- Parameters:
reg- the registry to add the items to
-