Uses of Interface
net.minecraft.client.option.SimpleOption.TooltipFactoryGetter
-
Uses of SimpleOption.TooltipFactoryGetter in net.minecraft.client.option
Modifier and TypeFieldDescriptionprivate final SimpleOption.TooltipFactoryGetter<T>
SimpleOption.tooltipFactoryGetter
Modifier and TypeMethodDescriptionstatic <T> SimpleOption.TooltipFactoryGetter<T>
SimpleOption.constantTooltip
(Text text) Returns the getter for thetooltipFactoryGetter
parameter of the constructor to indicate constant tooltips.static <T> SimpleOption.TooltipFactoryGetter<T>
SimpleOption.emptyTooltip()
Returns the getter for thetooltipFactoryGetter
parameter of the constructor to indicate empty tooltips.Modifier and TypeMethodDescriptionstatic SimpleOption<Boolean>
SimpleOption.ofBoolean
(String key, SimpleOption.TooltipFactoryGetter<Boolean> tooltipFactoryGetter, boolean defaultValue) Creates a boolean option.static SimpleOption<Boolean>
SimpleOption.ofBoolean
(String key, SimpleOption.TooltipFactoryGetter<Boolean> tooltipFactoryGetter, boolean defaultValue, Consumer<Boolean> changeCallback) Creates a boolean option.ModifierConstructorDescriptionSimpleOption
(String key, SimpleOption.TooltipFactoryGetter<T> tooltipFactoryGetter, SimpleOption.ValueTextGetter<T> valueTextGetter, SimpleOption.Callbacks<T> callbacks, com.mojang.serialization.Codec<T> codec, T defaultValue, Consumer<T> changeCallback) SimpleOption
(String key, SimpleOption.TooltipFactoryGetter<T> tooltipFactoryGetter, SimpleOption.ValueTextGetter<T> valueTextGetter, SimpleOption.Callbacks<T> callbacks, T defaultValue, Consumer<T> changeCallback)