Package dev.munebase.dynamickeybinds
Interface DynamicKeyRegistryProvider
public interface DynamicKeyRegistryProvider
Provider for accessing the global DynamicKeyRegistry instance.
Loader-specific implementations will provide the actual registry.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classInternal class to hold the provider singleton. -
Method Summary
Modifier and TypeMethodDescriptionstatic DynamicKeyRegistryGet the DynamicKeyRegistry instance.Internal method to get the registry instance.static voidSets the active provider used bygetRegistry().
-
Method Details
-
setRegistryProvider
Sets the active provider used bygetRegistry().- Parameters:
provider- loader-specific provider implementation
-
getRegistry
Get the DynamicKeyRegistry instance.- Returns:
- the registry instance
-
getRegistryInstance
DynamicKeyRegistry getRegistryInstance()Internal method to get the registry instance. Implemented by loaders.- Returns:
- the registry instance
-