Package net.minecraft.client.option
Class CyclingOption<T>
java.lang.Object
net.minecraft.client.option.Option
net.minecraft.client.option.CyclingOption<T>
- Mappings:
Namespace Name official dxe
intermediary net/minecraft/class_4064
named net/minecraft/client/option/CyclingOption
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Supplier<CyclingButtonWidget.Builder<T>>
private final Function<GameOptions,
T> private final CyclingOption.Setter<T>
Fields inherited from class net.minecraft.client.option.Option
ALLOW_SERVER_LISTING, AO, ATTACK_INDICATOR, AUDIO_DEVICE, 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, CHUNK_BUILDER_MODE, CLOUDS, DISCRETE_MOUSE_SCROLL, DISTORTION_EFFECT_SCALE, ENTITY_DISTANCE_SCALING, ENTITY_SHADOWS, field_32147, FORCE_UNICODE_FONT, FOV, FOV_EFFECT_SCALE, FRAMERATE_LIMIT, FULLSCREEN, GAMMA, GRAPHICS, GUI_SCALE, HIDE_LIGHTNING_FLASHES, HIDE_MATCHED_NAMES, INVERT_MOUSE, MAIN_HAND, MIPMAP_LEVELS, MONOCHROME_LOGO, MOUSE_WHEEL_SENSITIVITY, NARRATOR, PARTICLES, RAW_MOUSE_INPUT, REALMS_NOTIFICATIONS, REDUCED_DEBUG_INFO, RENDER_DISTANCE, SATURATION, SENSITIVITY, SHOW_AUTOSAVE_INDICATOR, SIMULATION_DISTANCE, SNEAK_TOGGLED, SPRINT_TOGGLED, SUBTITLES, TEXT_BACKGROUND, TEXT_BACKGROUND_OPACITY, TOUCHSCREEN, VIEW_BOBBING, VISIBILITY, VSYNC
-
Constructor Summary
ModifierConstructorDescriptionprivate
CyclingOption
(String key, Function<GameOptions, T> getter, CyclingOption.Setter<T> setter, Supplier<CyclingButtonWidget.Builder<T>> buttonBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionstatic CyclingOption<Boolean>
create
(String key, Function<GameOptions, Boolean> getter, CyclingOption.Setter<Boolean> setter) static <T> CyclingOption<T>
create
(String key, Supplier<List<T>> valuesSupplier, Function<T, Text> valueToText, Function<GameOptions, T> getter, CyclingOption.Setter<T> setter) static <T> CyclingOption<T>
create
(String key, List<T> values, Function<T, Text> valueToText, Function<GameOptions, T> getter, CyclingOption.Setter<T> setter) 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) static CyclingOption<Boolean>
create
(String key, Text tooltip, Function<GameOptions, Boolean> getter, CyclingOption.Setter<Boolean> setter) static CyclingOption<Boolean>
create
(String key, Text on, Text off, Function<GameOptions, Boolean> getter, CyclingOption.Setter<Boolean> setter) static <T> CyclingOption<T>
create
(String key, T[] values, Function<T, Text> valueToText, Function<GameOptions, T> getter, CyclingOption.Setter<T> setter) createButton
(GameOptions options, int x, int y, int width) Methods inherited from class net.minecraft.client.option.Option
getDisplayPrefix, getGenericLabel, getGenericLabel, getPercentAdditionLabel, getPercentLabel, getPixelLabel
-
Field Details
-
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
- 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
- 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
public CyclingOption<T> tooltip(Function<MinecraftClient, CyclingButtonWidget.TooltipFactory<T>> tooltips) - 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
- Specified by:
createButton
in classOption
- 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;
-