Class KeyMappingLookup
java.lang.Object
net.minecraftforge.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()
@Nullable KeyMapping
get
(InputConstants.Key keyCode) Deprecated, for removal: This API element is subject to removal in a future version.private @Nullable KeyMapping
get
(InputConstants.Key keyCode, KeyModifier keyModifier) 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
-
get
Deprecated, for removal: This API element is subject to removal in a future version. -
get
-
getAll
Returns all active keys associated with the given key code and the active modifiers and conflict context. This could probably be renamed to something like getActiveMappings, but that would be a breaking change.- Parameters:
keyCode
- the key being pressed- Returns:
- the list of key mappings
-
put
-
remove
-
clear
public void clear()
-