Uses of Interface
net.minecraft.client.option.CyclingOption.Setter
-
Uses of CyclingOption.Setter in net.minecraft.client.option
Modifier and TypeMethodDescriptionstatic CyclingOption<Boolean>
CyclingOption.create(String key, Function<GameOptions,Boolean> getter, CyclingOption.Setter<Boolean> setter)
static <T> CyclingOption<T>
CyclingOption.create(String key, Supplier<List<T>> valuesSupplier, Function<T,Text> valueToText, Function<GameOptions,T> getter, CyclingOption.Setter<T> setter)
static <T> CyclingOption<T>
CyclingOption.create(String key, List<T> values, Function<T,Text> valueToText, Function<GameOptions,T> getter, CyclingOption.Setter<T> setter)
static <T> CyclingOption<T>
CyclingOption.create(String key, List<T> defaults, List<T> alternatives, BooleanSupplier alternativeToggle, Function<T,Text> valueToText, Function<GameOptions,T> getter, CyclingOption.Setter<T> setter)
static CyclingOption<Boolean>
CyclingOption.create(String key, Text tooltip, Function<GameOptions,Boolean> getter, CyclingOption.Setter<Boolean> setter)
static CyclingOption<Boolean>
CyclingOption.create(String key, Text on, Text off, Function<GameOptions,Boolean> getter, CyclingOption.Setter<Boolean> setter)
static <T> CyclingOption<T>
CyclingOption.create(String key, T[] values, Function<T,Text> valueToText, Function<GameOptions,T> getter, CyclingOption.Setter<T> setter)
ModifierConstructorDescriptionprivate
CyclingOption(String key, Function<GameOptions,T> getter, CyclingOption.Setter<T> setter, Supplier<CyclingButtonWidget.Builder<T>> buttonBuilderFactory)