net.minecraft.client

public final class OptionInstance<T>

efx
net.minecraft.client.OptionInstance
net.minecraft.class_7172
net.minecraft.client.option.SimpleOption
net.minecraft.src.C_213334_

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
b
LOGGER
field_37862
LOGGER
f_231472_
public static final OptionInstance$Enum<Boolean>
a
BOOLEAN_VALUES
field_38278
BOOLEAN
f_231471_
private static final int
c
TOOLTIP_WIDTH
field_38441
TOOLTIP_WIDTH
f_231473_
private final OptionInstance$TooltipSupplierFactory<T>
d
tooltip
field_37863
tooltipFactoryGetter
f_231474_
final Function<T, Component>
e
toString
field_37864
textGetter
f_231475_
private final OptionInstance$ValueSet<T>
f
values
field_37865
callbacks
f_231476_
private final com.mojang.serialization.Codec<T>
g
codec
field_38279
codec
f_231477_
private final T
h
initialValue
field_37866
defaultValue
f_231478_
private final Consumer<T>
i
onValueUpdate
field_37867
changeCallback
f_231479_
final Component
j
caption
field_38280
text
f_231480_
T
k
value
field_37868
value
f_231481_

Constructor summary

ModifierConstructor
public (String key, OptionInstance$TooltipSupplierFactory<T> tooltipFactoryGetter, OptionInstance$CaptionBasedToString<T> valueTextGetter, OptionInstance$ValueSet<T> callbacks, T defaultValue, Consumer<T> changeCallback)
public (String key, OptionInstance$TooltipSupplierFactory<T> tooltipFactoryGetter, 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)
m_231528_(String p_231529_, boolean p_231530_, Consumer<Boolean> p_231531_)
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)
m_231525_(String p_231526_, boolean p_231527_)
public static OptionInstance<Boolean>
a(String arg0, efx$m<Boolean> arg1, boolean arg2)
createBoolean(String arg0, OptionInstance$TooltipSupplierFactory<Boolean> arg1, boolean arg2)
method_41749(String arg0, class_7172$class_7307<Boolean> arg1, boolean arg2)
ofBoolean(String key, SimpleOption$TooltipFactoryGetter<Boolean> tooltipFactoryGetter, boolean defaultValue)
m_231516_(String p_231517_, C_213334_$C_213349_<Boolean> p_231518_, boolean p_231519_)
public static OptionInstance<Boolean>
a(String arg0, efx$m<Boolean> arg1, boolean arg2, Consumer<Boolean> arg3)
createBoolean(String arg0, OptionInstance$TooltipSupplierFactory<Boolean> arg1, boolean arg2, Consumer<Boolean> arg3)
method_41750(String arg0, class_7172$class_7307<Boolean> arg1, boolean arg2, Consumer<Boolean> arg3)
ofBoolean(String key, SimpleOption$TooltipFactoryGetter<Boolean> tooltipFactoryGetter, boolean defaultValue, Consumer<Boolean> changeCallback)
m_231520_(String p_231521_, C_213334_$C_213349_<Boolean> p_231522_, boolean p_231523_, Consumer<Boolean> p_231524_)
public static <T> OptionInstance$TooltipSupplierFactory<T>
a()
noTooltip()
method_42399()
emptyTooltip()
m_231498_()
public static <T> OptionInstance$TooltipSupplierFactory<T>
a(rq arg0)
cachedConstantTooltip(Component arg0)
method_42717(class_2561 arg0)
constantTooltip(Text text)
m_231535_(C_4996_ p_231536_)
public static <T extends OptionEnum> OptionInstance$CaptionBasedToString<T>
b()
forOptionEnum()
method_42720()
enumValueText()
m_231546_()
protected static List<FormattedCharSequence>
a(efu arg0, rq arg1)
splitTooltip(Minecraft arg0, Component arg1)
method_42714(class_310 arg0, class_2561 arg1)
wrapLines(MinecraftClient client, Text text)
m_231501_(C_3391_ p_231502_, C_4996_ p_231503_)
public AbstractWidget
a(efy 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)
createButton(GameOptions options, int x, int y, int width)
m_231507_(C_3401_ p_231509_, int p_231510_, int p_231511_, int arg3)
public T
c()
get()
method_41753()
getValue()
m_231551_()
public com.mojang.serialization.Codec<T>
d()
codec()
method_42404()
getCodec()
m_231554_()
public void
a(T arg0)
set(T arg0)
method_41748(T arg0)
setValue(T value)
m_231514_(T arg0)
public OptionInstance$ValueSet<T>
e()
values()
method_41754()
getCallbacks()
m_231555_()