Interface SimpleOption.TypeChangeableCallbacks<T>

All Superinterfaces:
SimpleOption.Callbacks<T>, SimpleOption.CyclingCallbacks<T>, SimpleOption.SliderCallbacks<T>
All Known Implementing Classes:
SimpleOption.MaxSuppliableIntCallbacks
Enclosing class:
SimpleOption<T>

@Environment(CLIENT) static interface SimpleOption.TypeChangeableCallbacks<T> extends SimpleOption.CyclingCallbacks<T>, SimpleOption.SliderCallbacks<T>
Mappings:
Namespace Name
official eqy$j
intermediary net/minecraft/class_7172$class_7306
named net/minecraft/client/option/SimpleOption$TypeChangeableCallbacks
  • Method Details

    • isCycling

      boolean isCycling()
      Mappings:
      Namespace Name Mixin selector
      official c Leqy$j;c()Z
      intermediary method_42722 Lnet/minecraft/class_7172$class_7306;method_42722()Z
      named isCycling Lnet/minecraft/client/option/SimpleOption$TypeChangeableCallbacks;isCycling()Z
    • getWidgetCreator

      default Function<SimpleOption<T>,ClickableWidget> getWidgetCreator(SimpleOption.TooltipFactory<T> tooltipFactory, GameOptions gameOptions, int x, int y, int width, Consumer<T> changeCallback)
      Returns the widget creator.

      Widget creators are responsible for rendering the option into a ClickableWidget.

      Specified by:
      getWidgetCreator in interface SimpleOption.Callbacks<T>
      Specified by:
      getWidgetCreator in interface SimpleOption.CyclingCallbacks<T>
      Specified by:
      getWidgetCreator in interface SimpleOption.SliderCallbacks<T>
      Returns:
      the widget creator
      Mappings:
      Namespace Name Mixin selector
      official a Leqy$n;a(Leqy$l;Leqz;IIILjava/util/function/Consumer;)Ljava/util/function/Function;
      intermediary method_41756 Lnet/minecraft/class_7172$class_7178;method_41756(Lnet/minecraft/class_7172$class_7277;Lnet/minecraft/class_315;IIILjava/util/function/Consumer;)Ljava/util/function/Function;
      named getWidgetCreator Lnet/minecraft/client/option/SimpleOption$Callbacks;getWidgetCreator(Lnet/minecraft/client/option/SimpleOption$TooltipFactory;Lnet/minecraft/client/option/GameOptions;IIILjava/util/function/Consumer;)Ljava/util/function/Function;