Class FabricKeyBinding

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

@Deprecated
public class FabricKeyBinding
extends net.minecraft.client.options.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)!

  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  FabricKeyBinding.Builder
    Deprecated.
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected FabricKeyBinding​(net.minecraft.util.Identifier id, net.minecraft.client.util.InputUtil.Type type, int code, String category)
    Deprecated.
     
  • Method Summary

    Modifier and Type Method Description
    net.minecraft.client.util.InputUtil.Key getBoundKey()
    Deprecated.

    Methods inherited from class net.minecraft.client.options.KeyBinding

    compareTo, equals, getBoundKeyLocalizedText, getBoundKeyTranslationKey, getCategory, getDefaultKey, getLocalizedName, getTranslationKey, isDefault, isPressed, isUnbound, matchesKey, matchesMouse, onKeyPressed, setBoundKey, setKeyPressed, setPressed, unpressAll, updateKeysByCode, updatePressedStates, wasPressed

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FabricKeyBinding

      protected FabricKeyBinding​(net.minecraft.util.Identifier id, net.minecraft.client.util.InputUtil.Type type, int code, String category)
      Deprecated.
  • Method Details

    • getBoundKey

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