Package net.minecraft.client.option
Record Class SimpleOption.IntSliderCallbacks
java.lang.Object
java.lang.Record
net.minecraft.client.option.SimpleOption.IntSliderCallbacks
- Record Components:
minInclusive-maxInclusive-
- All Implemented Interfaces:
SimpleOption.Callbacks<Integer>,SimpleOption.SliderCallbacks<Integer>
- Enclosing class:
SimpleOption<T>
@Environment(CLIENT)
public static record SimpleOption.IntSliderCallbacks(int minInclusive, int maxInclusive)
extends Record
implements SimpleOption.SliderCallbacks<Integer>
- Mappings:
Namespace Name official eaq$bintermediary net/minecraft/class_7172$class_7174named net/minecraft/client/option/SimpleOption$IntSliderCallbacksofficial aintermediary comp_593named minInclusiveofficial bintermediary comp_594named maxInclusive
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for themaxInclusiverecord component.private final intThe field for theminInclusiverecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getButtonCreator(Option.TooltipFactory<Integer> tooltipFactory, GameOptions gameOptions, int x, int y, int width) final inthashCode()Returns a hash code value for this object.intReturns the value of themaxInclusiverecord component.intReturns the value of theminInclusiverecord component.doubletoSliderProgress(Integer integer) final StringtoString()Returns a string representation of this record class.toValue(double double2) boolean<R> SimpleOption.SliderCallbacks<R>withModifier(IntFunction<? extends R> sliderProgressValueToValue, ToIntFunction<? super R> valueToSliderProgressValue)
-
Field Details
-
minInclusive
private final int minInclusiveThe field for theminInclusiverecord component. -
maxInclusive
private final int maxInclusiveThe field for themaxInclusiverecord component.
-
-
Constructor Details
-
IntSliderCallbacks
public IntSliderCallbacks(int int2, int int3)
-
-
Method Details
-
getButtonCreator
public Function<SimpleOption<Integer>,ClickableWidget> getButtonCreator(Option.TooltipFactory<Integer> tooltipFactory, GameOptions gameOptions, int x, int y, int width) - Specified by:
getButtonCreatorin interfaceSimpleOption.Callbacks<Integer>- Mappings:
Namespace Name Mixin selector official aLeaq$f;a(Leap$a;Lear;III)Ljava/util/function/Function;intermediary method_41756Lnet/minecraft/class_7172$class_7178;method_41756(Lnet/minecraft/class_316$class_5679;Lnet/minecraft/class_315;III)Ljava/util/function/Function;named getButtonCreatorLnet/minecraft/client/option/SimpleOption$Callbacks;getButtonCreator(Lnet/minecraft/client/option/Option$TooltipFactory;Lnet/minecraft/client/option/GameOptions;III)Ljava/util/function/Function;
-
validate
- Specified by:
validatein interfaceSimpleOption.Callbacks<Integer>- Mappings:
Namespace Name Mixin selector official aLeaq$b;a(Ljava/lang/Integer;)Zintermediary method_41761Lnet/minecraft/class_7172$class_7174;method_41761(Ljava/lang/Integer;)Znamed validateLnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;validate(Ljava/lang/Integer;)Z
-
toSliderProgress
- Specified by:
toSliderProgressin interfaceSimpleOption.SliderCallbacks<Integer>- Mappings:
Namespace Name Mixin selector official bLeaq$b;b(Ljava/lang/Integer;)Dintermediary method_41764Lnet/minecraft/class_7172$class_7174;method_41764(Ljava/lang/Integer;)Dnamed toSliderProgressLnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;toSliderProgress(Ljava/lang/Integer;)D
-
toValue
- Specified by:
toValuein interfaceSimpleOption.SliderCallbacks<Integer>- Mappings:
Namespace Name Mixin selector official aLeaq$b;a(D)Ljava/lang/Integer;intermediary method_41759Lnet/minecraft/class_7172$class_7174;method_41759(D)Ljava/lang/Integer;named toValueLnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;toValue(D)Ljava/lang/Integer;
-
withModifier
public <R> SimpleOption.SliderCallbacks<R> withModifier(IntFunction<? extends R> sliderProgressValueToValue, ToIntFunction<? super R> valueToSliderProgressValue) - Mappings:
Namespace Name Mixin selector official aLeaq$b;a(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Leaq$d;intermediary method_41762Lnet/minecraft/class_7172$class_7174;method_41762(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Lnet/minecraft/class_7172$class_7176;named withModifierLnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;withModifier(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
minInclusive
public int minInclusive()Returns the value of theminInclusiverecord component.- Returns:
- the value of the
minInclusiverecord component
-
maxInclusive
public int maxInclusive()Returns the value of themaxInclusiverecord component.- Returns:
- the value of the
maxInclusiverecord component
-