Package net.minecraft.client.option
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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CyclingOption.class_5675<T>
-
Field Summary
Fields Modifier and Type Field Description private Supplier<CyclingButtonWidget.Builder<T>>
field_27954
private Function<MinecraftClient,CyclingButtonWidget.class_5679<T>>
field_27955
private Function<GameOptions,T>
getter
private CyclingOption.class_5675<T>
setter
Fields inherited from class net.minecraft.client.option.Option
AO, ATTACK_INDICATOR, AUTO_JUMP, AUTO_SUGGESTIONS, BIOME_BLEND_RADIUS, CHAT_COLOR, CHAT_DELAY_INSTANT, CHAT_HEIGHT_FOCUSED, CHAT_LINE_SPACING, CHAT_LINKS, CHAT_LINKS_PROMPT, CHAT_OPACITY, CHAT_SCALE, CHAT_WIDTH, CLOUDS, DISCRETE_MOUSE_SCROLL, DISTORTION_EFFECT_SCALE, ENTITY_DISTANCE_SCALING, ENTITY_SHADOWS, FORCE_UNICODE_FONT, FOV, FOV_EFFECT_SCALE, FRAMERATE_LIMIT, FULLSCREEN, GAMMA, GRAPHICS, GUI_SCALE, HIDE_MATCHED_NAMES, INVERT_MOUSE, MAIN_HAND, MIPMAP_LEVELS, MOUSE_WHEEL_SENSITIVITY, NARRATOR, PARTICLES, RAW_MOUSE_INPUT, REALMS_NOTIFICATIONS, REDUCED_DEBUG_INFO, RENDER_DISTANCE, SATURATION, SENSITIVITY, SNEAK_TOGGLED, SNOOPER, SPRINT_TOGGLED, SUBTITLES, TEXT_BACKGROUND, TEXT_BACKGROUND_OPACITY, TOUCHSCREEN, VIEW_BOBBING, VISIBILITY, VSYNC
-
Constructor Summary
Constructors Modifier Constructor Description private
CyclingOption(String key, Function<GameOptions,T> getter, CyclingOption.class_5675<T> setter, Supplier<CyclingButtonWidget.Builder<T>> supplier)
-
Method Summary
Methods inherited from class net.minecraft.client.option.Option
getDisplayPrefix, getGenericLabel, getGenericLabel, getPercentAdditionLabel, getPercentLabel, getPixelLabel
-
Field Details
-
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
- 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
- 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
- Specified by:
createButton
in classOption
- 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;
-