Package net.minecraft.client.option
Interface SimpleOption.TypeChangeableCallbacks<T>
- All Superinterfaces:
SimpleOption.Callbacks<T>
,SimpleOption.CyclingCallbacks<T>
,SimpleOption.SliderCallbacks<T>
- All Known Implementing Classes:
SimpleOption.MaxSuppliableIntCallbacks
- Enclosing class:
SimpleOption<T>
@Environment(CLIENT)
static interface SimpleOption.TypeChangeableCallbacks<T>
extends SimpleOption.CyclingCallbacks<T>, SimpleOption.SliderCallbacks<T>
- Mappings:
Namespace Name official eex$j
intermediary net/minecraft/class_7172$class_7306
named net/minecraft/client/option/SimpleOption$TypeChangeableCallbacks
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.option.SimpleOption.CyclingCallbacks
SimpleOption.CyclingCallbacks.ValueSetter<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Function<SimpleOption<T>,
ClickableWidget> getButtonCreator
(SimpleOption.TooltipFactory<T> tooltipFactory, GameOptions gameOptions, int x, int y, int width) Returns the button creator.boolean
Methods inherited from interface net.minecraft.client.option.SimpleOption.Callbacks
codec, validate
Methods inherited from interface net.minecraft.client.option.SimpleOption.CyclingCallbacks
getValues, valueSetter
Methods inherited from interface net.minecraft.client.option.SimpleOption.SliderCallbacks
toSliderProgress, toValue
-
Method Details
-
isCycling
boolean isCycling()- Mappings:
Namespace Name Mixin selector official c
Leex$j;c()Z
intermediary method_42722
Lnet/minecraft/class_7172$class_7306;method_42722()Z
named isCycling
Lnet/minecraft/client/option/SimpleOption$TypeChangeableCallbacks;isCycling()Z
-
getButtonCreator
default Function<SimpleOption<T>,ClickableWidget> getButtonCreator(SimpleOption.TooltipFactory<T> tooltipFactory, GameOptions gameOptions, int x, int y, int width) Returns the button creator.Button creators are responsible for rendering the option.
- Specified by:
getButtonCreator
in interfaceSimpleOption.Callbacks<T>
- Specified by:
getButtonCreator
in interfaceSimpleOption.CyclingCallbacks<T>
- Specified by:
getButtonCreator
in interfaceSimpleOption.SliderCallbacks<T>
- Returns:
- the button creator
- Mappings:
Namespace Name Mixin selector official a
Leex$o;a(Leex$l;Leey;III)Ljava/util/function/Function;
intermediary method_41756
Lnet/minecraft/class_7172$class_7178;method_41756(Lnet/minecraft/class_7172$class_7277;Lnet/minecraft/class_315;III)Ljava/util/function/Function;
named getButtonCreator
Lnet/minecraft/client/option/SimpleOption$Callbacks;getButtonCreator(Lnet/minecraft/client/option/SimpleOption$TooltipFactory;Lnet/minecraft/client/option/GameOptions;III)Ljava/util/function/Function;
-