Class KeyMappingLookup

java.lang.Object
net.neoforged.neoforge.client.settings.KeyMappingLookup

public class KeyMappingLookup extends Object
  • Field Details

  • Constructor Details

    • KeyMappingLookup

      public KeyMappingLookup()
  • Method Details

    • getAll

      public List<KeyMapping> getAll(InputConstants.Key keyCode)
      Returns all active keys associated with the given key code and the active modifiers and conflict context.
      Parameters:
      keyCode - the key being pressed
      Returns:
      the list of key mappings
    • getAll

      public List<KeyMapping> getAll(InputConstants.Key keyCode, boolean releasing)
      Returns all active keys associated with the given key code and the active modifiers and conflict context.
      Parameters:
      keyCode - the key being pressed
      releasing - if the key is being released
      Returns:
      the list of key mappings
    • findKeybinds

      private List<KeyMapping> findKeybinds(InputConstants.Key keyCode, KeyModifier modifier)
    • put

      public void put(InputConstants.Key keyCode, KeyMapping keyBinding)
    • remove

      public void remove(KeyMapping keyBinding)
    • clear

      public void clear()