net.minecraft.client

public final class OptionInstance<T>

fmj
net.minecraft.client.OptionInstance
net.minecraft.class_7172
net.minecraft.client.option.SimpleOption

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
c
LOGGER
field_37862
LOGGER
public static final OptionInstance$Enum<Boolean>
a
BOOLEAN_VALUES
field_38278
BOOLEAN
public static final OptionInstance$CaptionBasedToString<Boolean>
b
BOOLEAN_TO_STRING
field_41333
BOOLEAN_TEXT_GETTER
private final OptionInstance$TooltipSupplier<T>
d
tooltip
field_37863
tooltipFactory
final Function<T, Component>
e
toString
field_37864
textGetter
private final OptionInstance$ValueSet<T>
f
values
field_37865
callbacks
private final com.mojang.serialization.Codec<T>
g
codec
field_38279
codec
private final T
h
initialValue
field_37866
defaultValue
private final Consumer<T>
i
onValueUpdate
field_37867
changeCallback
final Component
j
caption
field_38280
text
T
k
value
field_37868
value

Constructor summary

ModifierConstructor
public (String key, OptionInstance$TooltipSupplier<T> tooltipFactory, OptionInstance$CaptionBasedToString<T> valueTextGetter, OptionInstance$ValueSet<T> callbacks, T defaultValue, Consumer<T> changeCallback)
public (String key, OptionInstance$TooltipSupplier<T> tooltipFactory, OptionInstance$CaptionBasedToString<T> valueTextGetter, OptionInstance$ValueSet<T> callbacks, com.mojang.serialization.Codec<T> codec, T defaultValue, Consumer<T> changeCallback)

Method summary

Modifier and TypeMethod
public static OptionInstance<Boolean>
a(String arg0, boolean arg1, Consumer<Boolean> arg2)
createBoolean(String arg0, boolean arg1, Consumer<Boolean> arg2)
method_41751(String arg0, boolean arg1, Consumer<Boolean> arg2)
ofBoolean(String key, boolean defaultValue, Consumer<Boolean> changeCallback)
public static OptionInstance<Boolean>
a(String arg0, boolean arg1)
createBoolean(String arg0, boolean arg1)
method_42402(String arg0, boolean arg1)
ofBoolean(String key, boolean defaultValue)
public static OptionInstance<Boolean>
a(String arg0, fmj$l<Boolean> arg1, boolean arg2)
createBoolean(String arg0, OptionInstance$TooltipSupplier<Boolean> arg1, boolean arg2)
method_41749(String arg0, class_7172$class_7277<Boolean> arg1, boolean arg2)
ofBoolean(String key, SimpleOption$TooltipFactory<Boolean> tooltipFactory, boolean defaultValue)
public static OptionInstance<Boolean>
a(String arg0, fmj$l<Boolean> arg1, boolean arg2, Consumer<Boolean> arg3)
createBoolean(String arg0, OptionInstance$TooltipSupplier<Boolean> arg1, boolean arg2, Consumer<Boolean> arg3)
method_41750(String arg0, class_7172$class_7277<Boolean> arg1, boolean arg2, Consumer<Boolean> arg3)
ofBoolean(String key, SimpleOption$TooltipFactory<Boolean> tooltipFactory, boolean defaultValue, Consumer<Boolean> changeCallback)
public static OptionInstance<Boolean>
a(String arg0, fmj$l<Boolean> arg1, fmj$b<Boolean> arg2, boolean arg3, Consumer<Boolean> arg4)
createBoolean(String arg0, OptionInstance$TooltipSupplier<Boolean> arg1, OptionInstance$CaptionBasedToString<Boolean> arg2, boolean arg3, Consumer<Boolean> arg4)
method_47604(String arg0, class_7172$class_7277<Boolean> arg1, class_7172$class_7303<Boolean> arg2, boolean arg3, Consumer<Boolean> arg4)
ofBoolean(String key, SimpleOption$TooltipFactory<Boolean> tooltipFactory, SimpleOption$ValueTextGetter<Boolean> valueTextGetter, boolean defaultValue, Consumer<Boolean> changeCallback)
public static <T> OptionInstance$TooltipSupplier<T>
a()
noTooltip()
method_42399()
emptyTooltip()
public static <T> OptionInstance$TooltipSupplier<T>
a(xv arg0)
cachedConstantTooltip(Component arg0)
method_42717(class_2561 arg0)
constantTooltip(Text text)
public static <T extends OptionEnum> OptionInstance$CaptionBasedToString<T>
b()
forOptionEnum()
method_42720()
enumValueText()
public AbstractWidget
a(fmk arg0)
createButton(Options arg0)
method_57701(class_315 arg0)
createWidget(GameOptions options)
public AbstractWidget
a(fmk arg0, int arg1, int arg2, int arg3)
createButton(Options arg0, int arg1, int arg2, int arg3)
method_18520(class_315 arg0, int arg1, int arg2, int arg3)
createWidget(GameOptions options, int x, int y, int width)
public AbstractWidget
a(fmk arg0, int arg1, int arg2, int arg3, Consumer<T> arg4)
createButton(Options arg0, int arg1, int arg2, int arg3, Consumer<T> arg4)
method_47603(class_315 arg0, int arg1, int arg2, int arg3, Consumer<T> arg4)
createWidget(GameOptions options, int x, int y, int width, Consumer<T> changeCallback)
public T
c()
get()
method_41753()
getValue()
public com.mojang.serialization.Codec<T>
d()
codec()
method_42404()
getCodec()
public void
a(T arg0)
set(T arg0)
method_41748(T arg0)
setValue(T value)
public OptionInstance$ValueSet<T>
e()
values()
method_41754()
getCallbacks()