Class Registries
java.lang.Object
dev.sympho.modular_commands.utils.Registries
Provides instances of default registry implementations.
- Since:
- 1.0
- Version:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic RegistryCreates a simple, directly-mapped registry implementation that does not support overrides.
-
Method Details
-
simpleRegistry
Creates a simple, directly-mapped registry implementation that does not support overrides. The (partial) exception to this are aliases, where a command may have an alias that matches the regular invocation of another command (the regular invocation will always have precedence over the alias). It may not, however, have the same alias as another command.- Returns:
- A simple, direct-mapped registry.
- API Note:
- This is the registry with the smallest performance and memory overhead, but naturally it also has the fewest features.
-