Class VariableModelProviderRegistry
java.lang.Object
org.cyclops.integrateddynamics.core.client.model.VariableModelProviderRegistry
- All Implemented Interfaces:
org.cyclops.cyclopscore.init.IRegistry
,IVariableModelProviderRegistry
Registry for
IVariableModelProvider
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<E extends IVariableModelProvider<B>,
B extends IVariableModelProvider.BakedModelProvider>
EaddProvider
(E provider) Register a new provider.
-
Constructor Details
-
VariableModelProviderRegistry
public VariableModelProviderRegistry()
-
-
Method Details
-
getInstance
- Returns:
- The unique instance.
-
addProvider
public <E extends IVariableModelProvider<B>,B extends IVariableModelProvider.BakedModelProvider> E addProvider(E provider) Description copied from interface:IVariableModelProviderRegistry
Register a new provider.- Specified by:
addProvider
in interfaceIVariableModelProviderRegistry
- Type Parameters:
E
- The type of provider.B
- The type of the baked model provider.- Parameters:
provider
- The provider to register.- Returns:
- The registered provider
-
getProviders
public List<IVariableModelProvider<? extends IVariableModelProvider.BakedModelProvider>> getProviders()- Specified by:
getProviders
in interfaceIVariableModelProviderRegistry
- Returns:
- All registered provider.
-