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>
A set of callbacks for a slider of values from
0.0 to 1.0 (both
inclusive). There is only one instance of this callbacks.- See Also:
- Mappings:
Namespace Name official eik$nintermediary 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()method_41768(double double2) method_41770(Double double2) doublemethod_41771(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.<R> SimpleOption.SliderCallbacks<R>withModifier(DoubleFunction<? extends R> sliderProgressValueToValue, ToDoubleFunction<? super R> valueToSliderProgressValue) Creates a slider callback with the modifier applied.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface net.minecraft.client.option.SimpleOption.Callbacks
validateMethods inherited from interface net.minecraft.client.option.SimpleOption.SliderCallbacks
getButtonCreator, toSliderProgress, toValue
-
Enum Constant Details
-
INSTANCE
- Mappings:
Namespace Name Mixin selector official aLeik$n;a:Leik$n;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
-
method_41770
- Mappings:
Namespace Name Mixin selector official aLeik$n;a(Ljava/lang/Double;)Ljava/util/Optional;intermediary method_41770Lnet/minecraft/class_7172$class_7177;method_41770(Ljava/lang/Double;)Ljava/util/Optional;named method_41770Lnet/minecraft/client/option/SimpleOption$DoubleSliderCallbacks;method_41770(Ljava/lang/Double;)Ljava/util/Optional;
-
method_41771
- Mappings:
Namespace Name Mixin selector official bLeik$n;b(Ljava/lang/Double;)Dintermediary method_41771Lnet/minecraft/class_7172$class_7177;method_41771(Ljava/lang/Double;)Dnamed method_41771Lnet/minecraft/client/option/SimpleOption$DoubleSliderCallbacks;method_41771(Ljava/lang/Double;)D
-
method_41768
- Mappings:
Namespace Name Mixin selector official aLeik$n;a(D)Ljava/lang/Double;intermediary method_41768Lnet/minecraft/class_7172$class_7177;method_41768(D)Ljava/lang/Double;named method_41768Lnet/minecraft/client/option/SimpleOption$DoubleSliderCallbacks;method_41768(D)Ljava/lang/Double;
-
withModifier
public <R> SimpleOption.SliderCallbacks<R> withModifier(DoubleFunction<? extends R> sliderProgressValueToValue, ToDoubleFunction<? super R> valueToSliderProgressValue) Creates a slider callback with the modifier applied.- See Also:
- Mappings:
Namespace Name Mixin selector official aLeik$n;a(Ljava/util/function/DoubleFunction;Ljava/util/function/ToDoubleFunction;)Leik$k;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 withModifierLnet/minecraft/client/option/SimpleOption$DoubleSliderCallbacks;withModifier(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 fLeik$o;f()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;
-