Class KeyMappingLookup
java.lang.Object
net.minecraftforge.client.settings.KeyMappingLookup
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final EnumMap<KeyModifier,Map<InputConstants.Key, List<KeyMapping>>>  - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidclear()@Nullable KeyMappingget(InputConstants.Key keyCode) Deprecated, for removal: This API element is subject to removal in a future version.private @Nullable KeyMappingget(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.voidput(InputConstants.Key keyCode, KeyMapping keyBinding) voidremove(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() 
 -