Package net.minecraft.client.option
Class StickyKeyBinding
java.lang.Object
net.minecraft.client.option.KeyBinding
net.minecraft.client.option.StickyKeyBinding
- All Implemented Interfaces:
Comparable<KeyBinding>
- Mappings:
Namespace Name named net/minecraft/client/option/StickyKeyBindingintermediary net/minecraft/class_4666official fzn
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.option.KeyBinding
KeyBinding.Category -
Field Summary
FieldsFields inherited from class net.minecraft.client.option.KeyBinding
boundKey -
Constructor Summary
ConstructorsConstructorDescriptionStickyKeyBinding(String id, int code, KeyBinding.Category category, BooleanSupplier toggleGetter) StickyKeyBinding(String string, InputUtil.Type type, int int2, KeyBinding.Category category, BooleanSupplier booleanSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidreset()voidsetPressed(boolean pressed) booleanprotected booleanprotected voiduntoggle()Methods inherited from class net.minecraft.client.option.KeyBinding
byId, compareTo, equals, getBoundKeyLocalizedText, getBoundKeyTranslationKey, getCategory, getDefaultKey, getLocalizedName, getTranslationKey, isDefault, isPressed, isUnbound, matchesKey, matchesMouse, onKeyPressed, restoreToggleStates, setBoundKey, setKeyPressed, unpressAll, untoggleStickyKeys, updateKeysByCode, updatePressedStates, wasPressed
-
Field Details
-
toggleGetter
- Mappings:
Namespace Name Mixin selector named toggleGetterLnet/minecraft/client/option/StickyKeyBinding;toggleGetter:Ljava/util/function/BooleanSupplier;intermediary field_21334Lnet/minecraft/class_4666;field_21334:Ljava/util/function/BooleanSupplier;official bLfzn;b:Ljava/util/function/BooleanSupplier;
-
field_62108
private boolean field_62108- Mappings:
Namespace Name Mixin selector named field_62108Lnet/minecraft/client/option/StickyKeyBinding;field_62108:Zintermediary field_62108Lnet/minecraft/class_4666;field_62108:Zofficial cLfzn;c:Z
-
-
Constructor Details
-
StickyKeyBinding
public StickyKeyBinding(String id, int code, KeyBinding.Category category, BooleanSupplier toggleGetter) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/option/StickyKeyBinding;<init>(Ljava/lang/String;ILnet/minecraft/client/option/KeyBinding$Category;Ljava/util/function/BooleanSupplier;)Vintermediary <init>Lnet/minecraft/class_4666;<init>(Ljava/lang/String;ILnet/minecraft/class_304$class_11900;Ljava/util/function/BooleanSupplier;)Vofficial <init>Lfzn;<init>(Ljava/lang/String;ILfza$a;Ljava/util/function/BooleanSupplier;)V
-
StickyKeyBinding
public StickyKeyBinding(String string, InputUtil.Type type, int int2, KeyBinding.Category category, BooleanSupplier booleanSupplier)
-
-
Method Details
-
shouldSetOnGameFocus
protected boolean shouldSetOnGameFocus()- Overrides:
shouldSetOnGameFocusin classKeyBinding- Mappings:
Namespace Name Mixin selector named shouldSetOnGameFocusLnet/minecraft/client/option/KeyBinding;shouldSetOnGameFocus()Zintermediary method_72701Lnet/minecraft/class_304;method_72701()Zofficial jLfza;j()Z
-
setPressed
public void setPressed(boolean pressed) - Overrides:
setPressedin classKeyBinding- Mappings:
Namespace Name Mixin selector named setPressedLnet/minecraft/client/option/KeyBinding;setPressed(Z)Vintermediary method_23481Lnet/minecraft/class_304;method_23481(Z)Vofficial aLfza;a(Z)V
-
reset
protected void reset()- Overrides:
resetin classKeyBinding- Mappings:
Namespace Name Mixin selector named resetLnet/minecraft/client/option/KeyBinding;reset()Vintermediary method_1425Lnet/minecraft/class_304;method_1425()Vofficial iLfza;i()V
-
shouldRestoreOnScreenClose
public boolean shouldRestoreOnScreenClose()- Mappings:
Namespace Name Mixin selector named shouldRestoreOnScreenCloseLnet/minecraft/client/option/StickyKeyBinding;shouldRestoreOnScreenClose()Zintermediary method_73364Lnet/minecraft/class_4666;method_73364()Zofficial qLfzn;q()Z
-
untoggle
protected void untoggle()- Mappings:
Namespace Name Mixin selector named untoggleLnet/minecraft/client/option/StickyKeyBinding;untoggle()Vintermediary method_52232Lnet/minecraft/class_4666;method_52232()Vofficial rLfzn;r()V
-