Class CommonClientKeybindPersistence

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

public final class CommonClientKeybindPersistence extends Object
Shared client-side persistence/sync flow used by both Forge and Fabric.
  • Constructor Details

    • CommonClientKeybindPersistence

      public CommonClientKeybindPersistence(org.slf4j.Logger logger, String platformName, BiConsumer<String,Integer> updateSender)
  • Method Details

    • requestRebindSync

      public static void requestRebindSync()
      Requests that dynamic key rebinds be sent to the server on the next client tick. Called when the vanilla Controls screen closes, which is where players rebind keys.
    • handleServerSync

      public void handleServerSync(List<StoredKeybind> serverKeybinds)
    • pollAndSyncDynamicKeyRebinds

      public void pollAndSyncDynamicKeyRebinds()
    • onClientLogin

      public void onClientLogin()
    • onClientLogout

      public void onClientLogout()