Uses of Interface
net.minecraft.client.option.SimpleOption.TooltipFactory
-
Uses of SimpleOption.TooltipFactory in net.minecraft.client.gui.widget
Modifier and TypeFieldDescriptionprivate SimpleOption.TooltipFactory<T>
CyclingButtonWidget.Builder.tooltipFactory
private final SimpleOption.TooltipFactory<T>
CyclingButtonWidget.tooltipFactory
Modifier and TypeMethodDescriptionCyclingButtonWidget.Builder.tooltip
(SimpleOption.TooltipFactory<T> tooltipFactory) Sets the tooltip factory that provides tooltips for any of the values.ModifierConstructorDescription(package private)
CyclingButtonWidget
(int x, int y, int width, int height, Text message, Text optionText, int index, T value, CyclingButtonWidget.Values<T> values, Function<T, Text> valueToText, Function<CyclingButtonWidget<T>, MutableText> narrationMessageFactory, CyclingButtonWidget.UpdateCallback<T> callback, SimpleOption.TooltipFactory<T> tooltipFactory, boolean optionTextOmitted) -
Uses of SimpleOption.TooltipFactory in net.minecraft.client.option
Modifier and TypeFieldDescriptionprivate final SimpleOption.TooltipFactory<N>
SimpleOption.OptionSliderWidgetImpl.tooltipFactory
private final SimpleOption.TooltipFactory<T>
SimpleOption.tooltipFactory
Modifier and TypeMethodDescriptionstatic <T> SimpleOption.TooltipFactory<T>
SimpleOption.constantTooltip
(Text text) Returns the getter for thetooltipFactoryGetter
parameter of the constructor to indicate constant tooltips.static <T> SimpleOption.TooltipFactory<T>
SimpleOption.emptyTooltip()
Returns the getter for thetooltipFactoryGetter
parameter of the constructor to indicate empty tooltips.Modifier and TypeMethodDescriptionSimpleOption.Callbacks.getWidgetCreator
(SimpleOption.TooltipFactory<T> tooltipFactory, GameOptions gameOptions, int x, int y, int width, Consumer<T> changeCallback) Returns the widget creator.default Function<SimpleOption<T>,
ClickableWidget> SimpleOption.CyclingCallbacks.getWidgetCreator
(SimpleOption.TooltipFactory<T> tooltipFactory, GameOptions gameOptions, int x, int y, int width, Consumer<T> changeCallback) Returns the widget creator.default Function<SimpleOption<T>,
ClickableWidget> SimpleOption.SliderCallbacks.getWidgetCreator
(SimpleOption.TooltipFactory<T> tooltipFactory, GameOptions gameOptions, int x, int y, int width, Consumer<T> changeCallback) Returns the widget creator.default Function<SimpleOption<T>,
ClickableWidget> SimpleOption.TypeChangeableCallbacks.getWidgetCreator
(SimpleOption.TooltipFactory<T> tooltipFactory, GameOptions gameOptions, int x, int y, int width, Consumer<T> changeCallback) Returns the widget creator.static SimpleOption<Boolean>
SimpleOption.ofBoolean
(String key, SimpleOption.TooltipFactory<Boolean> tooltipFactory, boolean defaultValue) Creates a boolean option.static SimpleOption<Boolean>
SimpleOption.ofBoolean
(String key, SimpleOption.TooltipFactory<Boolean> tooltipFactory, boolean defaultValue, Consumer<Boolean> changeCallback) Creates a boolean option.static SimpleOption<Boolean>
SimpleOption.ofBoolean
(String key, SimpleOption.TooltipFactory<Boolean> tooltipFactory, SimpleOption.ValueTextGetter<Boolean> valueTextGetter, boolean defaultValue, Consumer<Boolean> changeCallback) ModifierConstructorDescription(package private)
OptionSliderWidgetImpl
(GameOptions options, int x, int y, int width, int height, SimpleOption<N> option, SimpleOption.SliderCallbacks<N> callbacks, SimpleOption.TooltipFactory<N> tooltipFactory, Consumer<N> changeCallback) SimpleOption
(String key, SimpleOption.TooltipFactory<T> tooltipFactory, SimpleOption.ValueTextGetter<T> valueTextGetter, SimpleOption.Callbacks<T> callbacks, com.mojang.serialization.Codec<T> codec, T defaultValue, Consumer<T> changeCallback) SimpleOption
(String key, SimpleOption.TooltipFactory<T> tooltipFactory, SimpleOption.ValueTextGetter<T> valueTextGetter, SimpleOption.Callbacks<T> callbacks, T defaultValue, Consumer<T> changeCallback)