T
- The type of the catalog typepublic static interface GameRegistryEvent.Register<T extends CatalogType> extends GameRegistryEvent, GenericEvent<T>
CatalogType
s.
When creating custom CatalogRegistryModule
s, implementing the
AdditionalCatalogRegistryModule
allows this event to be called
for the target CatalogType
. All the CatalogType
s 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 . |
getGenericType
getCause, getContext, getSource
Class<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