T - The type of the catalog typepublic static interface GameRegistryEvent.Register<T extends CatalogType> extends GameRegistryEvent, GenericEvent<T>
CatalogTypes.
When creating custom CatalogRegistryModules, implementing the
AdditionalCatalogRegistryModule allows this event to be called
for the target CatalogType. All the CatalogTypes will
be registered through the AdditionalCatalogRegistryModule.registerAdditionalCatalog(CatalogType)
method.
GameRegistryEvent.Register<T extends CatalogType>| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getCatalogType()
Gets the
CatalogType that
is allowing registrations. |
CatalogRegistryModule<T> |
getRegistryModule()
Gets the registry module.
|
void |
register(T catalogType)
Registers the
CatalogType. |
getGenericTypegetCause, getContext, getSourceClass<T> getCatalogType()
CatalogType that
is allowing registrations.CatalogRegistryModule<T> getRegistryModule()
void register(T catalogType)
CatalogType.catalogType - The catalog typeIllegalArgumentException - If there is an id conflict with the
given type and an existing typeUnsupportedOperationException - If registration for the given
type is not supportedCatalogTypeAlreadyRegisteredException - If the type cannot be
registered because a matching type was already registered