Class KeyMappingLookup
java.lang.Object
net.neoforged.neoforge.client.settings.KeyMappingLookup
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final EnumMap<KeyModifier, Map<InputConstants.Key, Collection<KeyMapping>>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()private List<KeyMapping> findKeybinds(InputConstants.Key keyCode, KeyModifier modifier) getAll(InputConstants.Key keyCode) Returns all active keys associated with the given key code and the active modifiers and conflict context.voidput(InputConstants.Key keyCode, KeyMapping keyBinding) voidremove(KeyMapping keyBinding)
-
Field Details
-
map
-
-
Constructor Details
-
KeyMappingLookup
public KeyMappingLookup()
-
-
Method Details
-
getAll
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
-
findKeybinds
-
put
-
remove
-
clear
public void clear()
-