Package net.minecraft.client.option
Enum Class SimpleOption.DoubleSliderCallbacks
java.lang.Object
java.lang.Enum<SimpleOption.DoubleSliderCallbacks>
net.minecraft.client.option.SimpleOption.DoubleSliderCallbacks
- All Implemented Interfaces:
Serializable,Comparable<SimpleOption.DoubleSliderCallbacks>,Constable,SimpleOption.Callbacks<Double>,SimpleOption.SliderCallbacks<Double>
- Enclosing class:
SimpleOption<T>
@Environment(CLIENT)
public static enum SimpleOption.DoubleSliderCallbacks
extends Enum<SimpleOption.DoubleSliderCallbacks>
implements SimpleOption.SliderCallbacks<Double>
- Mappings:
Namespace Name official ebi$jintermediary net/minecraft/class_7172$class_7177named net/minecraft/client/option/SimpleOption$DoubleSliderCallbacks
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<Double>codec()getButtonCreator(SimpleOption.class_7277<Double> tooltipFactory, GameOptions gameOptions, int x, int y, int width) <R> SimpleOption.SliderCallbacks<R>method_42420(DoubleFunction<? extends R> doubleFunction, ToDoubleFunction<? super R> toDoubleFunction) doubletoSliderProgress(Double double2) toValue(double double2) Returns the enum constant of this class with the specified name.static SimpleOption.DoubleSliderCallbacks[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
- Mappings:
Namespace Name Mixin selector official aLebi$j;a:Lebi$j;intermediary field_37875Lnet/minecraft/class_7172$class_7177;field_37875:Lnet/minecraft/class_7172$class_7177;named INSTANCELnet/minecraft/client/option/SimpleOption$DoubleSliderCallbacks;INSTANCE:Lnet/minecraft/client/option/SimpleOption$DoubleSliderCallbacks;
-
-
Constructor Details
-
DoubleSliderCallbacks
private DoubleSliderCallbacks()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getButtonCreator
public Function<SimpleOption<Double>,ClickableWidget> getButtonCreator(SimpleOption.class_7277<Double> tooltipFactory, GameOptions gameOptions, int x, int y, int width) - Specified by:
getButtonCreatorin interfaceSimpleOption.Callbacks<Double>- Mappings:
Namespace Name Mixin selector official aLebi$k;a(Lebi$i;Lebj;III)Ljava/util/function/Function;intermediary method_41756Lnet/minecraft/class_7172$class_7178;method_41756(Lnet/minecraft/class_7172$class_7277;Lnet/minecraft/class_315;III)Ljava/util/function/Function;named getButtonCreatorLnet/minecraft/client/option/SimpleOption$Callbacks;getButtonCreator(Lnet/minecraft/client/option/SimpleOption$class_7277;Lnet/minecraft/client/option/GameOptions;III)Ljava/util/function/Function;
-
validate
- Specified by:
validatein interfaceSimpleOption.Callbacks<Double>- Mappings:
Namespace Name Mixin selector official aLebi$j;a(Ljava/lang/Double;)Ljava/util/Optional;intermediary method_41770Lnet/minecraft/class_7172$class_7177;method_41770(Ljava/lang/Double;)Ljava/util/Optional;named validateLnet/minecraft/client/option/SimpleOption$DoubleSliderCallbacks;validate(Ljava/lang/Double;)Ljava/util/Optional;
-
toSliderProgress
- Specified by:
toSliderProgressin interfaceSimpleOption.SliderCallbacks<Double>- Mappings:
Namespace Name Mixin selector official bLebi$j;b(Ljava/lang/Double;)Dintermediary method_41771Lnet/minecraft/class_7172$class_7177;method_41771(Ljava/lang/Double;)Dnamed toSliderProgressLnet/minecraft/client/option/SimpleOption$DoubleSliderCallbacks;toSliderProgress(Ljava/lang/Double;)D
-
toValue
- Specified by:
toValuein interfaceSimpleOption.SliderCallbacks<Double>- Mappings:
Namespace Name Mixin selector official aLebi$j;a(D)Ljava/lang/Double;intermediary method_41768Lnet/minecraft/class_7172$class_7177;method_41768(D)Ljava/lang/Double;named toValueLnet/minecraft/client/option/SimpleOption$DoubleSliderCallbacks;toValue(D)Ljava/lang/Double;
-
method_42420
public <R> SimpleOption.SliderCallbacks<R> method_42420(DoubleFunction<? extends R> doubleFunction, ToDoubleFunction<? super R> toDoubleFunction) - Mappings:
Namespace Name Mixin selector official aLebi$j;a(Ljava/util/function/DoubleFunction;Ljava/util/function/ToDoubleFunction;)Lebi$h;intermediary method_42420Lnet/minecraft/class_7172$class_7177;method_42420(Ljava/util/function/DoubleFunction;Ljava/util/function/ToDoubleFunction;)Lnet/minecraft/class_7172$class_7176;named method_42420Lnet/minecraft/client/option/SimpleOption$DoubleSliderCallbacks;method_42420(Ljava/util/function/DoubleFunction;Ljava/util/function/ToDoubleFunction;)Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;
-
codec
- Specified by:
codecin interfaceSimpleOption.Callbacks<Double>- Mappings:
Namespace Name Mixin selector official cLebi$k;c()Lcom/mojang/serialization/Codec;intermediary comp_675Lnet/minecraft/class_7172$class_7178;comp_675()Lcom/mojang/serialization/Codec;named codecLnet/minecraft/client/option/SimpleOption$Callbacks;codec()Lcom/mojang/serialization/Codec;
-