Class SimpleOption.OptionSliderWidgetImpl<N>

All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable, Updatable, Widget
Enclosing class:
SimpleOption<T>

@Environment(CLIENT) public static final class SimpleOption.OptionSliderWidgetImpl<N> extends OptionSliderWidget implements Updatable
Mappings:
Namespace Name
named net/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl
intermediary net/minecraft/class_7172$class_7175
official gdv$i
  • Field Details

    • option

      private final SimpleOption<N> option
      Mappings:
      Namespace Name Mixin selector
      named option Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;option:Lnet/minecraft/client/option/SimpleOption;
      intermediary field_37872 Lnet/minecraft/class_7172$class_7175;field_37872:Lnet/minecraft/class_7172;
      official n Lgdv$i;n:Lgdv;
    • callbacks

      private final SimpleOption.SliderCallbacks<N> callbacks
      Mappings:
      Namespace Name Mixin selector
      named callbacks Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;callbacks:Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;
      intermediary field_37873 Lnet/minecraft/class_7172$class_7175;field_37873:Lnet/minecraft/class_7172$class_7176;
      official o Lgdv$i;o:Lgdv$l;
    • tooltipFactory

      private final SimpleOption.TooltipFactory<N> tooltipFactory
      Mappings:
      Namespace Name Mixin selector
      named tooltipFactory Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;tooltipFactory:Lnet/minecraft/client/option/SimpleOption$TooltipFactory;
      intermediary field_37874 Lnet/minecraft/class_7172$class_7175;field_37874:Lnet/minecraft/class_7172$class_7277;
      official p Lgdv$i;p:Lgdv$m;
    • changeCallback

      private final Consumer<N> changeCallback
      Mappings:
      Namespace Name Mixin selector
      named changeCallback Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;changeCallback:Ljava/util/function/Consumer;
      intermediary field_41334 Lnet/minecraft/class_7172$class_7175;field_41334:Ljava/util/function/Consumer;
      official q Lgdv$i;q:Ljava/util/function/Consumer;
    • timeToApply

      private Long timeToApply
      Mappings:
      Namespace Name Mixin selector
      named timeToApply Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;timeToApply:Ljava/lang/Long;
      intermediary field_51513 Lnet/minecraft/class_7172$class_7175;field_51513:Ljava/lang/Long;
      official r Lgdv$i;r:Ljava/lang/Long;
    • shouldApplyImmediately

      private final boolean shouldApplyImmediately
      Mappings:
      Namespace Name Mixin selector
      named shouldApplyImmediately Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;shouldApplyImmediately:Z
      intermediary field_51514 Lnet/minecraft/class_7172$class_7175;field_51514:Z
      official s Lgdv$i;s:Z
  • Constructor Details

    • OptionSliderWidgetImpl

      OptionSliderWidgetImpl(GameOptions options, int x, int y, int width, int height, SimpleOption<N> option, SimpleOption.SliderCallbacks<N> callbacks, SimpleOption.TooltipFactory<N> tooltipFactory, Consumer<N> changeCallback, boolean shouldApplyImmediately)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;<init>(Lnet/minecraft/client/option/GameOptions;IIIILnet/minecraft/client/option/SimpleOption;Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;Lnet/minecraft/client/option/SimpleOption$TooltipFactory;Ljava/util/function/Consumer;Z)V
      intermediary <init> Lnet/minecraft/class_7172$class_7175;<init>(Lnet/minecraft/class_315;IIIILnet/minecraft/class_7172;Lnet/minecraft/class_7172$class_7176;Lnet/minecraft/class_7172$class_7277;Ljava/util/function/Consumer;Z)V
      official <init> Lgdv$i;<init>(Lgdw;IIIILgdv;Lgdv$l;Lgdv$m;Ljava/util/function/Consumer;Z)V
  • Method Details

    • updateMessage

      protected void updateMessage()
      Specified by:
      updateMessage in class SliderWidget
      Mappings:
      Namespace Name Mixin selector
      named updateMessage Lnet/minecraft/client/gui/widget/SliderWidget;updateMessage()V
      intermediary method_25346 Lnet/minecraft/class_357;method_25346()V
      official c Lghg;c()V
    • applyValue

      protected void applyValue()
      Specified by:
      applyValue in class SliderWidget
      Mappings:
      Namespace Name Mixin selector
      named applyValue Lnet/minecraft/client/gui/widget/SliderWidget;applyValue()V
      intermediary method_25344 Lnet/minecraft/class_357;method_25344()V
      official a Lghg;a()V
    • applyPendingValue

      public void applyPendingValue()
      Mappings:
      Namespace Name Mixin selector
      named applyPendingValue Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;applyPendingValue()V
      intermediary method_59868 Lnet/minecraft/class_7172$class_7175;method_59868()V
      official d Lgdv$i;d()V
    • update

      public void update()
      Specified by:
      update in interface Updatable
      Mappings:
      Namespace Name Mixin selector
      named update Lnet/minecraft/client/gui/Updatable;update()V
      intermediary method_75314 Lnet/minecraft/class_12144;method_75314()V
      official e Lgiq;e()V
    • renderWidget

      public void renderWidget(DrawContext context, int mouseX, int mouseY, float deltaTicks)
      Overrides:
      renderWidget in class SliderWidget
      Mappings:
      Namespace Name Mixin selector
      named renderWidget Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
      intermediary method_48579 Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
      official a_ Lghj;a_(Lggy;IIF)V
    • onRelease

      public void onRelease(Click click)
      Overrides:
      onRelease in class SliderWidget
      Mappings:
      Namespace Name Mixin selector
      named onRelease Lnet/minecraft/client/gui/widget/ClickableWidget;onRelease(Lnet/minecraft/client/gui/Click;)V
      intermediary method_25357 Lnet/minecraft/class_339;method_25357(Lnet/minecraft/class_11909;)V
      official a Lghj;a(Lgxi;)V
    • keyPressed

      public boolean keyPressed(KeyInput input)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Specified by:
      keyPressed in interface Element
      Overrides:
      keyPressed in class SliderWidget
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(Lnet/minecraft/client/input/KeyInput;)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(Lnet/minecraft/class_11908;)Z
      official a Lgku;a(Lgxh;)Z