Interface CategoryRegistry
public interface CategoryRegistry
A class for registry of
Category.-
Method Summary
Modifier and TypeMethodDescriptionasMap()Converts thisCategoryRegistrytoMap.static @NotNull CategoryRegistryget()Gets theCategoryRegistryinstance.Gets theCategorythat registered with the specified name.@NotNull CategoryGets theCategoryfor custom items.@NotNull StringgetRegisteredName(@NotNull Category category) Gets the name ofCategory.names()Gets the list of registered names.voidRegisters a newCategory.voidunregister(@NotNull String name) Unregisters aCategoryby its registered name.voidunregister(@NotNull Category category) Unregisters aCategory.voidUnregisters allCategory.values()Gets the list of registeredCategory.
-
Method Details
-
get
Gets theCategoryRegistryinstance.- Returns:
- the
CategoryRegistryinstance
-
register
-
unregister
-
unregister
-
unregisterAll
void unregisterAll()Unregisters allCategory. -
getByName
-
getRegisteredName
-
names
-
values
-
asMap
-
getCustomItemCategory
-