Package com.griefdefender.api.registry
Interface CatalogRegistryModule<T extends CatalogType>
- All Superinterfaces:
RegistryModule<T>
-
Method Summary
Modifier and TypeMethodDescriptiongetAll()Gets all registeredCatalogTypes registered in thisRegistryModule.Gets the desiredCatalogTypefrom the providedStringid.Methods inherited from interface com.griefdefender.api.registry.RegistryModule
registerCustomType, registerDefaults
-
Method Details
-
getById
Gets the desiredCatalogTypefrom the providedStringid. If acatalog typeis not registered for the givenid,Optional.empty()is returned.- Parameters:
id- The id of the catalog type requested- Returns:
- The catalog type, if available
-
getAll
Collection<T> getAll()Gets all registeredCatalogTypes registered in thisRegistryModule.- Returns:
- All catalog types registered in this module
-