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 ffk$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 Lffk$i;d:Lffk;
    • 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 Lffk$i;e:Lffk$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 Lffk$i;f:Lffk$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 Lffk$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 Lffk$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 Lffk$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> Lffk$i;<init>(Lffl;IIIILffk;Lffk$k;Lffk$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 Lfhc;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 Lfhc;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 Lffk$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 Lfhe;b(Lfgt;IIF)V