net.minecraft.client

public final class OptionInstance<T>

fmi
net.minecraft.client.OptionInstance
net.minecraft.class_7172
net.minecraft.unmapped.C_vbibxkxv
net.minecraft.client.option.SimpleOption
net.minecraft.client.option.Option
net.minecraft.src.C_213334_

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
c
LOGGER
field_37862
f_uzoiiqnr
LOGGER
LOGGER
f_231472_
public static final OptionInstance$Enum<Boolean>
a
BOOLEAN_VALUES
field_38278
f_jhewyxmd
BOOLEAN
BOOLEAN_VALUES
f_231471_
public static final OptionInstance$CaptionBasedToString<Boolean>
b
BOOLEAN_TO_STRING
field_41333
f_wkzqhfij
BOOLEAN_TEXT_GETTER
BOOLEAN_OPTION_TEXT_GETTER
f_260471_
private final OptionInstance$TooltipSupplier<T>
d
tooltip
field_37863
f_ymhbwdmy
tooltipFactory
tooltip
f_231474_
final Function<T, Component>
e
toString
field_37864
f_qlmnnace
textGetter
valueToText
f_231475_
private final OptionInstance$ValueSet<T>
f
values
field_37865
f_gcjtajod
callbacks
values
f_231476_
private final com.mojang.serialization.Codec<T>
g
codec
field_38279
f_hpafmesn
codec
codec
f_231477_
private final T
h
initialValue
field_37866
f_lrbwawsp
defaultValue
defaultValue
f_231478_
private final Consumer<T>
i
onValueUpdate
field_37867
f_idrlhymz
changeCallback
updateCallback
f_231479_
final Component
j
caption
field_38280
f_lphyjtev
text
text
f_231480_
T
k
value
field_37868
f_ayzltmzp
value
value
f_231481_

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)
m_ihkotpvm(String arg0, boolean arg1, Consumer<Boolean> arg2)
ofBoolean(String key, boolean defaultValue, Consumer<Boolean> changeCallback)
ofBoolean(String key, boolean defaultValue, Consumer<Boolean> updateCallback)
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)
m_styjbnrs(String arg0, boolean arg1)
ofBoolean(String key, boolean defaultValue)
ofBoolean(String key, boolean defaultValue)
m_231525_(String p_231526_, boolean p_231527_)
public static OptionInstance<Boolean>
a(String arg0, fmi$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)
m_gmqoafni(String arg0, C_vbibxkxv$C_msgaqezv<Boolean> arg1, boolean arg2)
ofBoolean(String key, SimpleOption$TooltipFactory<Boolean> tooltipFactory, boolean defaultValue)
ofBoolean(String key, Option$TooltipSupplier<Boolean> tooltipSupplier, boolean defaultValue)
m_257536_(String p_259291_, C_213334_$C_213348_<Boolean> p_260306_, boolean p_259985_)
public static OptionInstance<Boolean>
a(String arg0, fmi$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)
m_ryiwnbxv(String arg0, C_vbibxkxv$C_msgaqezv<Boolean> arg1, boolean arg2, Consumer<Boolean> arg3)
ofBoolean(String key, SimpleOption$TooltipFactory<Boolean> tooltipFactory, boolean defaultValue, Consumer<Boolean> changeCallback)
ofBoolean(String key, Option$TooltipSupplier<Boolean> tooltipSupplier, boolean defaultValue, Consumer<Boolean> updateCallback)
m_257874_(String p_259289_, C_213334_$C_213348_<Boolean> p_260210_, boolean p_259359_, Consumer<Boolean> p_259975_)
public static OptionInstance<Boolean>
a(String arg0, fmi$l<Boolean> arg1, fmi$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)
m_ujkwpzpm(String arg0, C_vbibxkxv$C_msgaqezv<Boolean> arg1, C_vbibxkxv$C_tunipivd<Boolean> arg2, boolean arg3, Consumer<Boolean> arg4)
ofBoolean(String key, SimpleOption$TooltipFactory<Boolean> tooltipFactory, SimpleOption$ValueTextGetter<Boolean> valueTextGetter, boolean defaultValue, Consumer<Boolean> changeCallback)
ofBoolean(String key, Option$TooltipSupplier<Boolean> tooltipSupplier, Option$OptionTextGetter<Boolean> textGetter, boolean defaultValue, Consumer<Boolean> updateCallback)
m_260965_(String p_262002_, C_213334_$C_213348_<Boolean> p_261507_, C_213334_$C_213336_<Boolean> p_262099_, boolean p_262136_, Consumer<Boolean> p_261984_)
public static <T> OptionInstance$TooltipSupplier<T>
a()
noTooltip()
method_42399()
m_bwrczfzy()
emptyTooltip()
emptyTooltip()
m_231498_()
public static <T> OptionInstance$TooltipSupplier<T>
a(xv arg0)
cachedConstantTooltip(Component arg0)
method_42717(class_2561 arg0)
m_rjfulvkg(C_rdaqiwdt arg0)
constantTooltip(Text text)
constantTooltip(Text text)
m_231535_(C_4996_ p_231536_)
public static <T extends OptionEnum> OptionInstance$CaptionBasedToString<T>
b()
forOptionEnum()
method_42720()
m_ocjknhzx()
enumValueText()
optionEnumText()
m_231546_()
public AbstractWidget
a(fmj arg0)
createButton(Options arg0)
method_57701(class_315 arg0)
m_vygmxldj(C_lscptbhn arg0)
createWidget(GameOptions options)
createButton(GameOptions options)
m_324463_(C_3401_ arg0)
public AbstractWidget
a(fmj 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)
m_ffpjahoa(C_lscptbhn arg0, int arg1, int arg2, int arg3)
createWidget(GameOptions options, int x, int y, int width)
createButton(GameOptions options, int x, int y, int width)
m_231507_(C_3401_ p_231509_, int p_231510_, int p_231511_, int arg3)
public AbstractWidget
a(fmj 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)
m_ayuyezwm(C_lscptbhn arg0, int arg1, int arg2, int arg3, Consumer<T> arg4)
createWidget(GameOptions options, int x, int y, int width, Consumer<T> changeCallback)
createButton(GameOptions options, int x, int y, int width, Consumer<T> callback)
m_261194_(C_3401_ p_261486_, int p_261569_, int p_261677_, int p_261912_, Consumer<T> arg4)
public T
c()
get()
method_41753()
m_snmuxvjl()
getValue()
get()
m_231551_()
public com.mojang.serialization.Codec<T>
d()
codec()
method_42404()
m_jivynsvq()
getCodec()
getCodec()
m_231554_()
public void
a(T arg0)
set(T arg0)
method_41748(T arg0)
m_gdmjalon(T arg0)
setValue(T value)
set(T value)
m_231514_(T arg0)
public OptionInstance$ValueSet<T>
e()
values()
method_41754()
m_lotxbajv()
getCallbacks()
getValues()
m_231555_()