Package net.minecraft.client
Class CycleOption<T>
java.lang.Object
net.minecraft.client.Option
net.minecraft.client.CycleOption<T>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Supplier<CycleButton.Builder<T>>
private final CycleOption.OptionSetter<T>
private Function<Minecraft,
CycleButton.TooltipSupplier<T>> Fields inherited from class net.minecraft.client.Option
ALLOW_SERVER_LISTING, AMBIENT_OCCLUSION, ATTACK_INDICATOR, AUDIO_DEVICE, AUTO_JUMP, AUTO_SUGGESTIONS, AUTOSAVE_INDICATOR, BIOME_BLEND_RADIUS, CHAT_COLOR, CHAT_DELAY, CHAT_HEIGHT_FOCUSED, CHAT_HEIGHT_UNFOCUSED, CHAT_LINE_SPACING, CHAT_LINKS, CHAT_LINKS_PROMPT, CHAT_OPACITY, CHAT_SCALE, CHAT_VISIBILITY, CHAT_WIDTH, DARK_MOJANG_STUDIOS_BACKGROUND_COLOR, DISCRETE_MOUSE_SCROLL, ENABLE_VSYNC, ENTITY_DISTANCE_SCALING, ENTITY_SHADOWS, FORCE_UNICODE_FONT, FOV, FOV_EFFECTS_SCALE, FRAMERATE_LIMIT, GAMMA, GRAPHICS, GUI_SCALE, HIDE_LIGHTNING_FLASH, HIDE_MATCHED_NAMES, INVERT_MOUSE, MAIN_HAND, MIPMAP_LEVELS, MOUSE_WHEEL_SENSITIVITY, NARRATOR, OPTIONS_TOOLTIP_WIDTH, PARTICLES, PRIORITIZE_CHUNK_UPDATES, RAW_MOUSE_INPUT, REALMS_NOTIFICATIONS, REDUCED_DEBUG_INFO, RENDER_CLOUDS, RENDER_DISTANCE, SCREEN_EFFECTS_SCALE, SENSITIVITY, SHOW_SUBTITLES, SIMULATION_DISTANCE, TEXT_BACKGROUND, TEXT_BACKGROUND_OPACITY, TOGGLE_CROUCH, TOGGLE_SPRINT, TOUCHSCREEN, USE_FULLSCREEN, VIEW_BOBBING
-
Constructor Summary
ModifierConstructorDescriptionprivate
CycleOption
(String p_167717_, Function<Options, T> p_167718_, CycleOption.OptionSetter<T> p_167719_, Supplier<CycleButton.Builder<T>> p_167720_) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> CycleOption<T>
create
(String p_167748_, Supplier<List<T>> p_167749_, Function<T, Component> p_167750_, Function<Options, T> p_167751_, CycleOption.OptionSetter<T> p_167752_) static <T> CycleOption<T>
create
(String p_167738_, List<T> p_167739_, Function<T, Component> p_167740_, Function<Options, T> p_167741_, CycleOption.OptionSetter<T> p_167742_) static <T> CycleOption<T>
create
(String p_167730_, List<T> p_167731_, List<T> p_167732_, BooleanSupplier p_167733_, Function<T, Component> p_167734_, Function<Options, T> p_167735_, CycleOption.OptionSetter<T> p_167736_) static <T> CycleOption<T>
create
(String p_167765_, T[] p_167766_, Function<T, Component> p_167767_, Function<Options, T> p_167768_, CycleOption.OptionSetter<T> p_167769_) static CycleOption<Boolean>
createBinaryOption
(String p_167759_, Component p_167760_, Component p_167761_, Function<Options, Boolean> p_167762_, CycleOption.OptionSetter<Boolean> p_167763_) createButton
(Options p_90688_, int p_90689_, int p_90690_, int p_90691_) static CycleOption<Boolean>
createOnOff
(String p_167744_, Function<Options, Boolean> p_167745_, CycleOption.OptionSetter<Boolean> p_167746_) static CycleOption<Boolean>
createOnOff
(String p_167754_, Component p_167755_, Function<Options, Boolean> p_167756_, CycleOption.OptionSetter<Boolean> p_167757_) setTooltip
(Function<Minecraft, CycleButton.TooltipSupplier<T>> p_167774_) Methods inherited from class net.minecraft.client.Option
genericValueLabel, genericValueLabel, getCaption, percentAddValueLabel, percentValueLabel, pixelValueLabel
-
Field Details
-
setter
-
getter
-
buttonSetup
-
tooltip
-
-
Constructor Details
-
CycleOption
private CycleOption(String p_167717_, Function<Options, T> p_167718_, CycleOption.OptionSetter<T> p_167719_, Supplier<CycleButton.Builder<T>> p_167720_)
-
-
Method Details
-
create
public static <T> CycleOption<T> create(String p_167738_, List<T> p_167739_, Function<T, Component> p_167740_, Function<Options, T> p_167741_, CycleOption.OptionSetter<T> p_167742_) -
create
public static <T> CycleOption<T> create(String p_167748_, Supplier<List<T>> p_167749_, Function<T, Component> p_167750_, Function<Options, T> p_167751_, CycleOption.OptionSetter<T> p_167752_) -
create
public static <T> CycleOption<T> create(String p_167730_, List<T> p_167731_, List<T> p_167732_, BooleanSupplier p_167733_, Function<T, Component> p_167734_, Function<Options, T> p_167735_, CycleOption.OptionSetter<T> p_167736_) -
create
public static <T> CycleOption<T> create(String p_167765_, T[] p_167766_, Function<T, Component> p_167767_, Function<Options, T> p_167768_, CycleOption.OptionSetter<T> p_167769_) -
createBinaryOption
public static CycleOption<Boolean> createBinaryOption(String p_167759_, Component p_167760_, Component p_167761_, Function<Options, Boolean> p_167762_, CycleOption.OptionSetter<Boolean> p_167763_) -
createOnOff
public static CycleOption<Boolean> createOnOff(String p_167744_, Function<Options, Boolean> p_167745_, CycleOption.OptionSetter<Boolean> p_167746_) -
createOnOff
public static CycleOption<Boolean> createOnOff(String p_167754_, Component p_167755_, Function<Options, Boolean> p_167756_, CycleOption.OptionSetter<Boolean> p_167757_) -
setTooltip
-
createButton
- Specified by:
createButton
in classOption
-