Class KeyMappingLookup
java.lang.Object
net.neoforged.neoforge.client.settings.KeyMappingLookup
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final EnumMap
<KeyModifier, Map<InputConstants.Key, Collection<KeyMapping>>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
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.void
put
(InputConstants.Key keyCode, KeyMapping keyBinding) void
remove
(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()
-