Uses of Interface
net.minecraft.client.option.SimpleOption.ValueTextGetter
-
Uses of SimpleOption.ValueTextGetter in net.minecraft.client.option
Modifier and TypeFieldDescriptionstatic final SimpleOption.ValueTextGetter
<Boolean> SimpleOption.BOOLEAN_TEXT_GETTER
Modifier and TypeMethodDescriptionstatic <T extends TranslatableOption>
SimpleOption.ValueTextGetter<T> SimpleOption.enumValueText()
Returns the getter for thevalueTextGetter
parameter of the constructor to use the value's text as the option's rendered text.Modifier and TypeMethodDescriptionstatic SimpleOption
<Boolean> SimpleOption.ofBoolean
(String key, SimpleOption.TooltipFactory<Boolean> tooltipFactory, SimpleOption.ValueTextGetter<Boolean> valueTextGetter, boolean defaultValue, Consumer<Boolean> changeCallback) ModifierConstructorDescriptionSimpleOption
(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)