类 KeyMappingLookup
java.lang.Object
net.minecraftforge.client.settings.KeyMappingLookup
-
字段概要
字段修饰符和类型字段说明private static final EnumMap<KeyModifier,
Map<InputConstants.Key, Collection<KeyMapping>>> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
clear()
@Nullable KeyMapping
get
(InputConstants.Key keyCode) 已过时, 待删除: 此 API 元素将从以后的版本中删除。private @Nullable KeyMapping
get
(InputConstants.Key keyCode, KeyModifier keyModifier) 已过时, 待删除: 此 API 元素将从以后的版本中删除。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)
-
字段详细资料
-
map
-
-
构造器详细资料
-
KeyMappingLookup
public KeyMappingLookup()
-
-
方法详细资料
-
get
@Deprecated(forRemoval=true, since="1.20.1") @Nullable public @Nullable KeyMapping get(InputConstants.Key keyCode) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Replaced bygetAll
-
get
@Nullable @Deprecated(forRemoval=true, since="1.20.1") private @Nullable KeyMapping get(InputConstants.Key keyCode, KeyModifier keyModifier) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
getAll
Returns all active keys associated with the given key code and the active modifiers and conflict context.- 参数:
keyCode
- the key being pressed- 返回:
- the list of key mappings
-
put
-
remove
-
clear
public void clear()
-