public interface IForgeKeybinding
Modifier and Type | Method and Description |
---|---|
InputMappings.Input |
getKey() |
default KeyBinding |
getKeyBinding() |
IKeyConflictContext |
getKeyConflictContext() |
KeyModifier |
getKeyModifier() |
KeyModifier |
getKeyModifierDefault() |
default boolean |
hasKeyCodeModifierConflict(KeyBinding other)
Returns true when one of the bindings' key codes conflicts with the other's modifier.
|
default boolean |
isActiveAndMatches(InputMappings.Input keyCode)
Checks that the key conflict context and modifier are active, and that the keyCode matches this binding.
|
void |
setKeyConflictContext(IKeyConflictContext keyConflictContext) |
void |
setKeyModifierAndCode(KeyModifier keyModifier,
InputMappings.Input keyCode) |
default void |
setToDefault() |
default KeyBinding getKeyBinding()
@Nonnull InputMappings.Input getKey()
default boolean isActiveAndMatches(InputMappings.Input keyCode)
default void setToDefault()
void setKeyConflictContext(IKeyConflictContext keyConflictContext)
IKeyConflictContext getKeyConflictContext()
KeyModifier getKeyModifierDefault()
KeyModifier getKeyModifier()
void setKeyModifierAndCode(KeyModifier keyModifier, InputMappings.Input keyCode)
default boolean hasKeyCodeModifierConflict(KeyBinding other)