Class KeyMappingLookup
java.lang.Object
net.minecraftforge.client.settings.KeyMappingLookup
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final EnumMap<KeyModifier,
Map<InputConstants.Key, List<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) Deprecated, for removal: This API element is subject to removal in a future version.private List<KeyMapping>
get
(KeyModifier modifier, InputConstants.Key keyCode) 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(forRemoval=true, since="1.20.1") @Nullable public @Nullable KeyMapping get(InputConstants.Key keyCode) Deprecated, for removal: This API element is subject to removal in a future version.Replaced bygetAll
-
get
@Nullable @Deprecated(forRemoval=true, since="1.20.1") private @Nullable KeyMapping get(InputConstants.Key keyCode, KeyModifier keyModifier) Deprecated, for removal: This API element is subject to removal in a future version. -
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
-
get
-
put
-
remove
-
clear
public void clear()
-