Class FabricKeyBinding

java.lang.Object
net.minecraft.client.option.KeyBinding
net.fabricmc.fabric.api.client.keybinding.FabricKeyBinding
All Implemented Interfaces:
Comparable<KeyBinding>

@Deprecated public class FabricKeyBinding extends KeyBinding
Deprecated.
Please migrate to v1. Please use KeyBindingHelper.registerKeyBinding(KeyBinding) instead.
Expanded version of KeyBinding for use by Fabric mods.

*ALL* instantiated FabricKeyBindings should be registered in KeyBindingRegistry.register(FabricKeyBinding)!

  • Constructor Details

  • Method Details

    • getBoundKey

      @Deprecated public InputUtil.Key getBoundKey()
      Deprecated.
      Returns the configured KeyCode assigned to the KeyBinding from the player's settings.
      Returns:
      configured KeyCode