Class CommonClientBootstrap
java.lang.Object
dev.munebase.dynamickeybinds.client.CommonClientBootstrap
Shared client bootstrap helpers for networked dynamic key registry setup.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DynamicKeyRegistryinitializeNetworkedRegistry(ClientRegistryNetworkBridge networkBridge) Creates a networked client registry and installs it as the active provider.static DynamicKeyRegistryinitializeNetworkedRegistry(CommonClientBootstrap.AddRequestSender addSender, Consumer<String> removeSender) Creates a networked client registry and installs it as the active provider.
-
Method Details
-
initializeNetworkedRegistry
public static DynamicKeyRegistry initializeNetworkedRegistry(ClientRegistryNetworkBridge networkBridge) Creates a networked client registry and installs it as the active provider.- Parameters:
networkBridge- bridge used to send add/remove operations to the server- Returns:
- created client registry
-
initializeNetworkedRegistry
public static DynamicKeyRegistry initializeNetworkedRegistry(CommonClientBootstrap.AddRequestSender addSender, Consumer<String> removeSender) Creates a networked client registry and installs it as the active provider.- Parameters:
addSender- callback to send add requests to the serverremoveSender- callback to send remove requests to the server- Returns:
- created client registry
-