Class SimpleOption.OptionSliderWidgetImpl<N>

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

@Environment(CLIENT) public static final class SimpleOption.OptionSliderWidgetImpl<N> extends OptionSliderWidget
Mappings:
Namespace Name
named net/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl
intermediary net/minecraft/class_7172$class_7175
official ffj$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 d Lffj$i;d:Lffj;
    • 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 e Lffj$i;e:Lffj$k;
    • 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 f Lffj$i;f:Lffj$l;
    • 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 m Lffj$i;m:Ljava/util/function/Consumer;
    • timeToApply

      @Nullable private @Nullable 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 n Lffj$i;n: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 o Lffj$i;o: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> Lffj$i;<init>(Lffk;IIIILffj;Lffj$k;Lffj$l;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 b Lfhb;b()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 Lfhb;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 c Lffj$i;c()V
    • renderWidget

      public void renderWidget(DrawContext context, int mouseX, int mouseY, float delta)
      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 b Lfhd;b(Lfgs;IIF)V