Interface SimpleOption.CyclingCallbacks<T>

All Superinterfaces:
SimpleOption.Callbacks<T>
All Known Subinterfaces:
SimpleOption.TypeChangeableCallbacks<T>
All Known Implementing Classes:
SimpleOption.AlternateValuesSupportingCyclingCallbacks, SimpleOption.LazyCyclingCallbacks, SimpleOption.MaxSuppliableIntCallbacks, SimpleOption.PotentialValuesBasedCallbacks
Enclosing class:
SimpleOption<T>

@Environment(CLIENT) static interface SimpleOption.CyclingCallbacks<T> extends SimpleOption.Callbacks<T>
Mappings:
Namespace Name
official eey$d
intermediary net/minecraft/class_7172$class_7305
named net/minecraft/client/option/SimpleOption$CyclingCallbacks
  • Method Details

    • getValues

      Mappings:
      Namespace Name Mixin selector
      official a Leey$d;a()Legy$c;
      intermediary method_42721 Lnet/minecraft/class_7172$class_7305;method_42721()Lnet/minecraft/class_5676$class_5680;
      named getValues Lnet/minecraft/client/option/SimpleOption$CyclingCallbacks;getValues()Lnet/minecraft/client/gui/widget/CyclingButtonWidget$Values;
    • valueSetter

      Mappings:
      Namespace Name Mixin selector
      official e Leey$d;e()Leey$d$a;
      intermediary comp_674 Lnet/minecraft/class_7172$class_7305;comp_674()Lnet/minecraft/class_7172$class_7305$class_7274;
      named valueSetter Lnet/minecraft/client/option/SimpleOption$CyclingCallbacks;valueSetter()Lnet/minecraft/client/option/SimpleOption$CyclingCallbacks$ValueSetter;
    • getButtonCreator

      default Function<SimpleOption<T>,ClickableWidget> getButtonCreator(SimpleOption.TooltipFactory<T> tooltipFactory, GameOptions gameOptions, int x, int y, int width)
      Returns the button creator.

      Button creators are responsible for rendering the option.

      Specified by:
      getButtonCreator in interface SimpleOption.Callbacks<T>
      Returns:
      the button creator
      Mappings:
      Namespace Name Mixin selector
      official a Leey$o;a(Leey$l;Leez;III)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;III)Ljava/util/function/Function;
      named getButtonCreator Lnet/minecraft/client/option/SimpleOption$Callbacks;getButtonCreator(Lnet/minecraft/client/option/SimpleOption$TooltipFactory;Lnet/minecraft/client/option/GameOptions;III)Ljava/util/function/Function;