Interface IForgeKeyMapping

All Known Implementing Classes:
KeyMapping, ToggleKeyMapping

public interface IForgeKeyMapping
Extension interface for KeyMapping.
  • Method Details

    • self

      private KeyMapping self()
    • getKey

      @NotNull InputConstants.Key getKey()
    • isActiveAndMatches

      default boolean isActiveAndMatches(InputConstants.Key keyCode)
      Returns true if the key conflict context and modifier are active and the keyCode matches this binding, false otherwise.
      Returns:
      true if the key conflict context and modifier are active and the keyCode matches this binding, false otherwise
    • setToDefault

      default void setToDefault()
    • setKeyConflictContext

      void setKeyConflictContext(IKeyConflictContext keyConflictContext)
    • getKeyConflictContext

      IKeyConflictContext getKeyConflictContext()
    • getDefaultKeyModifier

      KeyModifier getDefaultKeyModifier()
    • getKeyModifier

      KeyModifier getKeyModifier()
    • setKeyModifierAndCode

      void setKeyModifierAndCode(KeyModifier keyModifier, InputConstants.Key keyCode)
    • isConflictContextAndModifierActive

      default boolean isConflictContextAndModifierActive()
    • hasKeyModifierConflict

      default boolean hasKeyModifierConflict(KeyMapping other)
      Returns true when one of the bindings' key codes conflicts with the other's modifier.