Class CommonClientKeybindPersistence
java.lang.Object
dev.munebase.dynamickeybinds.client.CommonClientKeybindPersistence
Shared client-side persistence/sync flow used by both Forge and Fabric.
-
Constructor Summary
ConstructorsConstructorDescriptionCommonClientKeybindPersistence(org.slf4j.Logger logger, String platformName, BiConsumer<String, Integer> updateSender) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleServerSync(List<StoredKeybind> serverKeybinds) voidvoidvoidstatic voidRequests that dynamic key rebinds be sent to the server on the next client tick.
-
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
-
pollAndSyncDynamicKeyRebinds
public void pollAndSyncDynamicKeyRebinds() -
onClientLogin
public void onClientLogin() -
onClientLogout
public void onClientLogout()
-