Class StickyKeyBinding

java.lang.Object
net.minecraft.client.option.KeyBinding
net.minecraft.client.option.StickyKeyBinding
All Implemented Interfaces:
Comparable<KeyBinding>

@Environment(CLIENT) public class StickyKeyBinding extends KeyBinding
Mappings:
Namespace Name
official eob
intermediary net/minecraft/class_4666
named net/minecraft/client/option/StickyKeyBinding
  • Field Details

    • toggleGetter

      private final BooleanSupplier toggleGetter
      Mappings:
      Namespace Name Mixin selector
      official h Leob;h:Ljava/util/function/BooleanSupplier;
      intermediary field_21334 Lnet/minecraft/class_4666;field_21334:Ljava/util/function/BooleanSupplier;
      named toggleGetter Lnet/minecraft/client/option/StickyKeyBinding;toggleGetter:Ljava/util/function/BooleanSupplier;
  • Constructor Details

    • StickyKeyBinding

      public StickyKeyBinding(String id, int code, String category, BooleanSupplier toggleGetter)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leob;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/BooleanSupplier;)V
      intermediary <init> Lnet/minecraft/class_4666;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/BooleanSupplier;)V
      named <init> Lnet/minecraft/client/option/StickyKeyBinding;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/BooleanSupplier;)V
  • Method Details

    • setPressed

      public void setPressed(boolean pressed)
      Overrides:
      setPressed in class KeyBinding
      Mappings:
      Namespace Name Mixin selector
      official a Lenl;a(Z)V
      intermediary method_23481 Lnet/minecraft/class_304;method_23481(Z)V
      named setPressed Lnet/minecraft/client/option/KeyBinding;setPressed(Z)V
    • untoggle

      protected void untoggle()
      Mappings:
      Namespace Name Mixin selector
      official n Leob;n()V
      intermediary method_52232 Lnet/minecraft/class_4666;method_52232()V
      named untoggle Lnet/minecraft/client/option/StickyKeyBinding;untoggle()V