Class CyclingOption<T>

java.lang.Object
net.minecraft.client.option.Option
net.minecraft.client.option.CyclingOption<T>

@Environment(CLIENT) public class CyclingOption<T> extends Option
Mappings:
Namespace Name
official dxe
intermediary net/minecraft/class_4064
named net/minecraft/client/option/CyclingOption
  • Field Details

    • setter

      private final CyclingOption.Setter<T> setter
      Mappings:
      Namespace Name Mixin selector
      official af Ldxe;af:Ldxe$a;
      intermediary field_18169 Lnet/minecraft/class_4064;field_18169:Lnet/minecraft/class_4064$class_5675;
      named setter Lnet/minecraft/client/option/CyclingOption;setter:Lnet/minecraft/client/option/CyclingOption$Setter;
    • getter

      private final Function<GameOptions,T> getter
      Mappings:
      Namespace Name Mixin selector
      official ag Ldxe;ag:Ljava/util/function/Function;
      intermediary field_27953 Lnet/minecraft/class_4064;field_27953:Ljava/util/function/Function;
      named getter Lnet/minecraft/client/option/CyclingOption;getter:Ljava/util/function/Function;
    • buttonBuilderFactory

      private final Supplier<CyclingButtonWidget.Builder<T>> buttonBuilderFactory
      Mappings:
      Namespace Name Mixin selector
      official ah Ldxe;ah:Ljava/util/function/Supplier;
      intermediary field_27954 Lnet/minecraft/class_4064;field_27954:Ljava/util/function/Supplier;
      named buttonBuilderFactory Lnet/minecraft/client/option/CyclingOption;buttonBuilderFactory:Ljava/util/function/Supplier;
    • tooltips

      Mappings:
      Namespace Name Mixin selector
      official ai Ldxe;ai:Ljava/util/function/Function;
      intermediary field_27955 Lnet/minecraft/class_4064;field_27955:Ljava/util/function/Function;
      named tooltips Lnet/minecraft/client/option/CyclingOption;tooltips:Ljava/util/function/Function;
  • Constructor Details

    • CyclingOption

      private CyclingOption(String key, Function<GameOptions,T> getter, CyclingOption.Setter<T> setter, Supplier<CyclingButtonWidget.Builder<T>> buttonBuilderFactory)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldxe;<init>(Ljava/lang/String;Ljava/util/function/Function;Ldxe$a;Ljava/util/function/Supplier;)V
      intermediary <init> Lnet/minecraft/class_4064;<init>(Ljava/lang/String;Ljava/util/function/Function;Lnet/minecraft/class_4064$class_5675;Ljava/util/function/Supplier;)V
      named <init> Lnet/minecraft/client/option/CyclingOption;<init>(Ljava/lang/String;Ljava/util/function/Function;Lnet/minecraft/client/option/CyclingOption$Setter;Ljava/util/function/Supplier;)V
  • Method Details

    • create

      public static <T> CyclingOption<T> create(String key, List<T> values, Function<T,Text> valueToText, Function<GameOptions,T> getter, CyclingOption.Setter<T> setter)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxe;a(Ljava/lang/String;Ljava/util/List;Ljava/util/function/Function;Ljava/util/function/Function;Ldxe$a;)Ldxe;
      intermediary method_35694 Lnet/minecraft/class_4064;method_35694(Ljava/lang/String;Ljava/util/List;Ljava/util/function/Function;Ljava/util/function/Function;Lnet/minecraft/class_4064$class_5675;)Lnet/minecraft/class_4064;
      named create Lnet/minecraft/client/option/CyclingOption;create(Ljava/lang/String;Ljava/util/List;Ljava/util/function/Function;Ljava/util/function/Function;Lnet/minecraft/client/option/CyclingOption$Setter;)Lnet/minecraft/client/option/CyclingOption;
    • create

      public static <T> CyclingOption<T> create(String key, Supplier<List<T>> valuesSupplier, Function<T,Text> valueToText, Function<GameOptions,T> getter, CyclingOption.Setter<T> setter)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxe;a(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/util/function/Function;Ljava/util/function/Function;Ldxe$a;)Ldxe;
      intermediary method_32523 Lnet/minecraft/class_4064;method_32523(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/util/function/Function;Ljava/util/function/Function;Lnet/minecraft/class_4064$class_5675;)Lnet/minecraft/class_4064;
      named create Lnet/minecraft/client/option/CyclingOption;create(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/util/function/Function;Ljava/util/function/Function;Lnet/minecraft/client/option/CyclingOption$Setter;)Lnet/minecraft/client/option/CyclingOption;
    • create

      public static <T> CyclingOption<T> create(String key, List<T> defaults, List<T> alternatives, BooleanSupplier alternativeToggle, Function<T,Text> valueToText, Function<GameOptions,T> getter, CyclingOption.Setter<T> setter)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxe;a(Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/function/BooleanSupplier;Ljava/util/function/Function;Ljava/util/function/Function;Ldxe$a;)Ldxe;
      intermediary method_32521 Lnet/minecraft/class_4064;method_32521(Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/function/BooleanSupplier;Ljava/util/function/Function;Ljava/util/function/Function;Lnet/minecraft/class_4064$class_5675;)Lnet/minecraft/class_4064;
      named create Lnet/minecraft/client/option/CyclingOption;create(Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/function/BooleanSupplier;Ljava/util/function/Function;Ljava/util/function/Function;Lnet/minecraft/client/option/CyclingOption$Setter;)Lnet/minecraft/client/option/CyclingOption;
    • create

      public static <T> CyclingOption<T> create(String key, T[] values, Function<T,Text> valueToText, Function<GameOptions,T> getter, CyclingOption.Setter<T> setter)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxe;a(Ljava/lang/String;[Ljava/lang/Object;Ljava/util/function/Function;Ljava/util/function/Function;Ldxe$a;)Ldxe;
      intermediary method_32526 Lnet/minecraft/class_4064;method_32526(Ljava/lang/String;[Ljava/lang/Object;Ljava/util/function/Function;Ljava/util/function/Function;Lnet/minecraft/class_4064$class_5675;)Lnet/minecraft/class_4064;
      named create Lnet/minecraft/client/option/CyclingOption;create(Ljava/lang/String;[Ljava/lang/Object;Ljava/util/function/Function;Ljava/util/function/Function;Lnet/minecraft/client/option/CyclingOption$Setter;)Lnet/minecraft/client/option/CyclingOption;
    • create

      public static CyclingOption<Boolean> create(String key, Text on, Text off, Function<GameOptions,Boolean> getter, CyclingOption.Setter<Boolean> setter)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxe;a(Ljava/lang/String;Lpz;Lpz;Ljava/util/function/Function;Ldxe$a;)Ldxe;
      intermediary method_32525 Lnet/minecraft/class_4064;method_32525(Ljava/lang/String;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Ljava/util/function/Function;Lnet/minecraft/class_4064$class_5675;)Lnet/minecraft/class_4064;
      named create Lnet/minecraft/client/option/CyclingOption;create(Ljava/lang/String;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Ljava/util/function/Function;Lnet/minecraft/client/option/CyclingOption$Setter;)Lnet/minecraft/client/option/CyclingOption;
    • create

      public static CyclingOption<Boolean> create(String key, Function<GameOptions,Boolean> getter, CyclingOption.Setter<Boolean> setter)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxe;a(Ljava/lang/String;Ljava/util/function/Function;Ldxe$a;)Ldxe;
      intermediary method_32522 Lnet/minecraft/class_4064;method_32522(Ljava/lang/String;Ljava/util/function/Function;Lnet/minecraft/class_4064$class_5675;)Lnet/minecraft/class_4064;
      named create Lnet/minecraft/client/option/CyclingOption;create(Ljava/lang/String;Ljava/util/function/Function;Lnet/minecraft/client/option/CyclingOption$Setter;)Lnet/minecraft/client/option/CyclingOption;
    • create

      public static CyclingOption<Boolean> create(String key, Text tooltip, Function<GameOptions,Boolean> getter, CyclingOption.Setter<Boolean> setter)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxe;a(Ljava/lang/String;Lpz;Ljava/util/function/Function;Ldxe$a;)Ldxe;
      intermediary method_32524 Lnet/minecraft/class_4064;method_32524(Ljava/lang/String;Lnet/minecraft/class_2561;Ljava/util/function/Function;Lnet/minecraft/class_4064$class_5675;)Lnet/minecraft/class_4064;
      named create Lnet/minecraft/client/option/CyclingOption;create(Ljava/lang/String;Lnet/minecraft/text/Text;Ljava/util/function/Function;Lnet/minecraft/client/option/CyclingOption$Setter;)Lnet/minecraft/client/option/CyclingOption;
    • tooltip

      Mappings:
      Namespace Name Mixin selector
      official a Ldxe;a(Ljava/util/function/Function;)Ldxe;
      intermediary method_32528 Lnet/minecraft/class_4064;method_32528(Ljava/util/function/Function;)Lnet/minecraft/class_4064;
      named tooltip Lnet/minecraft/client/option/CyclingOption;tooltip(Ljava/util/function/Function;)Lnet/minecraft/client/option/CyclingOption;
    • createButton

      public ClickableWidget createButton(GameOptions options, int x, int y, int width)
      Specified by:
      createButton in class Option
      Mappings:
      Namespace Name Mixin selector
      official a Ldxr;a(Ldxs;III)Ldyy;
      intermediary method_18520 Lnet/minecraft/class_316;method_18520(Lnet/minecraft/class_315;III)Lnet/minecraft/class_339;
      named createButton Lnet/minecraft/client/option/Option;createButton(Lnet/minecraft/client/option/GameOptions;III)Lnet/minecraft/client/gui/widget/ClickableWidget;