Package net.minheur.potoflux.registry
Class AbstractRegistry<T extends IRegistryType>
java.lang.Object
net.minheur.potoflux.registry.AbstractRegistry<T>
- Type Parameters:
T- what registry item that the reg lists
- Direct Known Subclasses:
CloseRunRegistry,CommandRegistry,MenuRegistry,ModEventsRegistry,NotificationTypesRegistry,SettingRegistry,StartLogicRunRegistry,StartUiRunRegistry,StylesheetsRegistry,TabRegistry
A registry for an event. There should only be one by event.
The mods should create a
The mods should create a
RegistryList then use its register method, giving the class implementing this.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AtomicBooleanprotected final Map<ResourceLocation,T> Actual registry for theAbstractRegistry, by their ID and their value. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
REGISTRY
Actual registry for theAbstractRegistry, by their ID and their value. -
closed
-
-
Constructor Details
-
AbstractRegistry
public AbstractRegistry()
-
-
Method Details
-
getAll
Getter for all value- Returns:
- REGISTRY's values
-
add
Adds an item to the reg- Parameters:
item- object to add to the reg- Returns:
- the item added
-
close
public void close()
-