public class ToggleableKeyBinding extends KeyBinding
Modifier and Type | Field and Description |
---|---|
private java.util.function.BooleanSupplier |
getterToggle |
Constructor and Description |
---|
ToggleableKeyBinding(java.lang.String descriptionIn,
int codeIn,
java.lang.String categoryIn,
java.util.function.BooleanSupplier getterIn) |
Modifier and Type | Method and Description |
---|---|
void |
setPressed(boolean valueIn)
Forge End
|
bind, compareTo, conflicts, getDefault, getDisplayString, getKey, getKeyCategory, getKeyConflictContext, getKeyDescription, getKeyModifier, getKeyModifierDefault, getLocalizedName, getTranslationKey, isDefault, isInvalid, isKeyDown, isPressed, matchesKey, matchesMouseKey, onTick, resetKeyBindingArrayAndHash, setKeyBindState, setKeyConflictContext, setKeyModifierAndCode, unPressAllKeys, updateKeyBindState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKeyBinding, hasKeyCodeModifierConflict, isActiveAndMatches, setToDefault
public ToggleableKeyBinding(java.lang.String descriptionIn, int codeIn, java.lang.String categoryIn, java.util.function.BooleanSupplier getterIn)
public void setPressed(boolean valueIn)
KeyBinding
setPressed
in class KeyBinding