Class DynamicKeyMapping

java.lang.Object
net.minecraft.client.KeyMapping
dev.munebase.dynamickeybinds.client.DynamicKeyMapping
All Implemented Interfaces:
Comparable<net.minecraft.client.KeyMapping>

public class DynamicKeyMapping extends net.minecraft.client.KeyMapping
KeyMapping with optional dynamic display metadata.
  • Field Summary

    Fields inherited from class net.minecraft.client.KeyMapping

    CATEGORY_CREATIVE, CATEGORY_GAMEPLAY, CATEGORY_INTERFACE, CATEGORY_INVENTORY, CATEGORY_MISC, CATEGORY_MOVEMENT, CATEGORY_MULTIPLAYER
  • Constructor Summary

    Constructors
    Constructor
    Description
    DynamicKeyMapping(String id, int keyCode, String category, DisplaySpec displaySpec)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    categoryKey(String category)
    The KeyMapping category string used for a dynamic keybind category.
     
    void
     

    Methods inherited from class net.minecraft.client.KeyMapping

    click, compareTo, consumeClick, createNameSupplier, getCategory, getDefaultKey, getName, getTranslatedKeyMessage, isDefault, isDown, isUnbound, matches, matchesMouse, releaseAll, resetMapping, resetToggleKeys, same, saveString, set, setAll, setDown, setKey

    Methods inherited from class java.lang.Object

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

    • DynamicKeyMapping

      public DynamicKeyMapping(String id, int keyCode, String category, DisplaySpec displaySpec)
  • Method Details

    • categoryKey

      public static String categoryKey(String category)
      The KeyMapping category string used for a dynamic keybind category.
    • getDisplaySpec

      public DisplaySpec getDisplaySpec()
    • setDisplaySpec

      public void setDisplaySpec(DisplaySpec displaySpec)