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 dqa
intermediary net/minecraft/class_4064
named net/minecraft/client/option/CyclingOption
  • Field Details

    • setter

      private final CyclingOption.class_5675<T> setter
      Mappings:
      Namespace Name Mixin selector
      official Y Ldqa;Y:Ldqa$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$class_5675;
    • getter

      private final Function<GameOptions,​T> getter
      Mappings:
      Namespace Name Mixin selector
      official Z Ldqa;Z: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;
    • field_27954

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

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

    • CyclingOption

      private CyclingOption​(String key, Function<GameOptions,​T> getter, CyclingOption.class_5675<T> setter, Supplier<CyclingButtonWidget.Builder<T>> supplier)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldqa;<init>(Ljava/lang/String;Ljava/util/function/Function;Ldqa$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$class_5675;Ljava/util/function/Supplier;)V
  • Method Details

    • create

      public static <T> CyclingOption<T> create​(String key, Supplier<List<T>> supplier, Function<T,​Text> function, Function<GameOptions,​T> getter, CyclingOption.class_5675<T> setter)
      Mappings:
      Namespace Name Mixin selector
      official a Ldqa;a(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/util/function/Function;Ljava/util/function/Function;Ldqa$a;)Ldqa;
      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$class_5675;)Lnet/minecraft/client/option/CyclingOption;
    • create

      public static <T> CyclingOption<T> create​(String key, List<T> list, List<T> list2, BooleanSupplier booleanSupplier, Function<T,​Text> function, Function<GameOptions,​T> getter, CyclingOption.class_5675<T> setter)
      Mappings:
      Namespace Name Mixin selector
      official a Ldqa;a(Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/function/BooleanSupplier;Ljava/util/function/Function;Ljava/util/function/Function;Ldqa$a;)Ldqa;
      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$class_5675;)Lnet/minecraft/client/option/CyclingOption;
    • create

      public static <T> CyclingOption<T> create​(String key, T[] t, Function<T,​Text> function, Function<GameOptions,​T> getter, CyclingOption.class_5675<T> setter)
      Mappings:
      Namespace Name Mixin selector
      official a Ldqa;a(Ljava/lang/String;[Ljava/lang/Object;Ljava/util/function/Function;Ljava/util/function/Function;Ldqa$a;)Ldqa;
      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$class_5675;)Lnet/minecraft/client/option/CyclingOption;
    • create

      public static CyclingOption<Boolean> create​(String key, Text text, Text text2, Function<GameOptions,​Boolean> getter, CyclingOption.class_5675<Boolean> setter)
      Mappings:
      Namespace Name Mixin selector
      official a Ldqa;a(Ljava/lang/String;Loi;Loi;Ljava/util/function/Function;Ldqa$a;)Ldqa;
      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$class_5675;)Lnet/minecraft/client/option/CyclingOption;
    • create

      public static CyclingOption<Boolean> create​(String key, Function<GameOptions,​Boolean> getter, CyclingOption.class_5675<Boolean> setter)
      Mappings:
      Namespace Name Mixin selector
      official a Ldqa;a(Ljava/lang/String;Ljava/util/function/Function;Ldqa$a;)Ldqa;
      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$class_5675;)Lnet/minecraft/client/option/CyclingOption;
    • create

      public static CyclingOption<Boolean> create​(String key, Text text, Function<GameOptions,​Boolean> getter, CyclingOption.class_5675<Boolean> setter)
      Mappings:
      Namespace Name Mixin selector
      official a Ldqa;a(Ljava/lang/String;Loi;Ljava/util/function/Function;Ldqa$a;)Ldqa;
      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$class_5675;)Lnet/minecraft/client/option/CyclingOption;
    • method_32528

      public CyclingOption<T> method_32528​(Function<MinecraftClient,​CyclingButtonWidget.class_5679<T>> function)
      Mappings:
      Namespace Name Mixin selector
      official a Ldqa;a(Ljava/util/function/Function;)Ldqa;
      intermediary method_32528 Lnet/minecraft/class_4064;method_32528(Ljava/util/function/Function;)Lnet/minecraft/class_4064;
      named method_32528 Lnet/minecraft/client/option/CyclingOption;method_32528(Ljava/util/function/Function;)Lnet/minecraft/client/option/CyclingOption;
    • createButton

      public AbstractButtonWidget createButton​(GameOptions options, int x, int y, int width)
      Specified by:
      createButton in class Option
      Mappings:
      Namespace Name Mixin selector
      official a Ldqn;a(Ldqo;III)Ldrs;
      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/AbstractButtonWidget;