Package net.minecraft.client.settings
Class ToggleableKeyBinding
- java.lang.Object
-
- net.minecraft.client.settings.KeyBinding
-
- net.minecraft.client.settings.ToggleableKeyBinding
-
- All Implemented Interfaces:
java.lang.Comparable<KeyBinding>
,IForgeKeybinding
public class ToggleableKeyBinding extends KeyBinding
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.BooleanSupplier
needsToggle
-
Fields inherited from class net.minecraft.client.settings.KeyBinding
isDown
-
-
Constructor Summary
Constructors Constructor Description ToggleableKeyBinding(java.lang.String p_i225917_1_, int p_i225917_2_, java.lang.String p_i225917_3_, java.util.function.BooleanSupplier p_i225917_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDown()
void
setDown(boolean p_225593_1_)
-
Methods inherited from class net.minecraft.client.settings.KeyBinding
click, compareTo, consumeClick, createNameSupplier, getCategory, getDefaultKey, getKey, getKeyConflictContext, getKeyModifier, getKeyModifierDefault, getName, getTranslatedKeyMessage, isDefault, isUnbound, matches, matchesMouse, releaseAll, resetMapping, same, saveString, set, setAll, setKey, setKeyConflictContext, setKeyModifierAndCode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.client.extensions.IForgeKeybinding
getKeyBinding, hasKeyCodeModifierConflict, isActiveAndMatches, isConflictContextAndModifierActive, setToDefault
-
-
-
-
Method Detail
-
setDown
public void setDown(boolean p_225593_1_)
- Overrides:
setDown
in classKeyBinding
-
isDown
public boolean isDown()
- Overrides:
isDown
in classKeyBinding
-
-