net.minecraft.client

public final class OptionInstance<T>

emk
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
c
LOGGER
field_37862
LOGGER
f_231472_
public static final OptionInstance$Enum<Boolean>
a
BOOLEAN_VALUES
field_38278
BOOLEAN
f_231471_
public static final OptionInstance$CaptionBasedToString<Boolean>
b
BOOLEAN_TO_STRING
field_41333
BOOLEAN_TEXT_GETTER
f_260471_
private final OptionInstance$TooltipSupplier<T>
d
tooltip
field_37863
tooltipFactory
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$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)
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, emk$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)
m_257536_(String p_259291_, C_213334_$C_213348_<Boolean> p_260306_, boolean p_259985_)
public static OptionInstance<Boolean>
a(String arg0, emk$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)
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, emk$l<Boolean> arg1, emk$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)
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()
emptyTooltip()
m_231498_()
public static <T> OptionInstance$TooltipSupplier<T>
a(tj 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_()
public AbstractWidget
a(eml 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)
m_231507_(C_3401_ p_231509_, int p_231510_, int p_231511_, int arg3)
public AbstractWidget
a(eml 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)
m_261194_(C_3401_ p_261486_, int p_261569_, int p_261677_, int p_261912_, Consumer<T> arg4)
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_()