接口 IForgeKeyMapping

所有已知实现类:
KeyMapping, ToggleKeyMapping

public interface IForgeKeyMapping
Extension interface for KeyMapping.
  • 方法详细资料

    • self

      private KeyMapping self()
    • getKey

      @NotNull InputConstants.Key getKey()
    • isActiveAndMatches

      default boolean isActiveAndMatches(InputConstants.Key keyCode)
      返回 true if the key conflict context and modifier are active and the keyCode matches this binding, false otherwise。
      返回:
      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.