Class KeyMappingLookup

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

public class KeyMappingLookup extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final EnumMap<KeyModifier,Map<com.mojang.blaze3d.platform.InputConstants.Key,Collection<net.minecraft.client.KeyMapping>>>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    private List<net.minecraft.client.KeyMapping>
    findKeybinds(com.mojang.blaze3d.platform.InputConstants.Key keyCode, KeyModifier modifier)
     
    List<net.minecraft.client.KeyMapping>
    getAll(com.mojang.blaze3d.platform.InputConstants.Key keyCode)
    Returns all active keys associated with the given key code and the active modifiers and conflict context.
    List<net.minecraft.client.KeyMapping>
    getAll(com.mojang.blaze3d.platform.InputConstants.Key keyCode, boolean releasing)
    Returns all active keys associated with the given key code and the active modifiers and conflict context.
    void
    put(com.mojang.blaze3d.platform.InputConstants.Key keyCode, net.minecraft.client.KeyMapping keyBinding)
     
    void
    remove(net.minecraft.client.KeyMapping keyBinding)
     

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • KeyMappingLookup

      public KeyMappingLookup()
  • Method Details

    • getAll

      public List<net.minecraft.client.KeyMapping> getAll(com.mojang.blaze3d.platform.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<net.minecraft.client.KeyMapping> getAll(com.mojang.blaze3d.platform.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<net.minecraft.client.KeyMapping> findKeybinds(com.mojang.blaze3d.platform.InputConstants.Key keyCode, KeyModifier modifier)
    • put

      public void put(com.mojang.blaze3d.platform.InputConstants.Key keyCode, net.minecraft.client.KeyMapping keyBinding)
    • remove

      public void remove(net.minecraft.client.KeyMapping keyBinding)
    • clear

      public void clear()