Class CommonClientBootstrap

java.lang.Object
dev.munebase.dynamickeybinds.client.CommonClientBootstrap

public final class CommonClientBootstrap extends Object
Shared client bootstrap helpers for networked dynamic key registry setup.
  • 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 server
      removeSender - callback to send remove requests to the server
      Returns:
      created client registry