Package net.minecraft.client.option
Record Class SimpleOption.ValidatingIntSliderCallbacks
java.lang.Object
java.lang.Record
net.minecraft.client.option.SimpleOption.ValidatingIntSliderCallbacks
- Record Components:
minInclusive-maxInclusive-
- All Implemented Interfaces:
SimpleOption.Callbacks<Integer>,SimpleOption.IntSliderCallbacks,SimpleOption.SliderCallbacks<Integer>
- Enclosing class:
SimpleOption<T>
@Environment(CLIENT)
public static record SimpleOption.ValidatingIntSliderCallbacks(int minInclusive, int maxInclusive)
extends Record
implements SimpleOption.IntSliderCallbacks
A set of callbacks for a slider of integer values with a fixed minimum and maximum values.
- See Also:
- Mappings:
Namespace Name official eik$fintermediary net/minecraft/class_7172$class_7174named net/minecraft/client/option/SimpleOption$ValidatingIntSliderCallbacksofficial 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 TypeMethodDescriptioncom.mojang.serialization.Codec<Integer>codec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmethod_41761(Integer integer) intfinal StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.option.SimpleOption.Callbacks
validateMethods inherited from interface net.minecraft.client.option.SimpleOption.IntSliderCallbacks
method_42412, method_42415, withModifierMethods inherited from interface net.minecraft.client.option.SimpleOption.SliderCallbacks
getButtonCreator, toSliderProgress, toValue
-
Field Details
-
minInclusive
private final int minInclusiveThe field for theminInclusiverecord component. -
maxInclusive
private final int maxInclusiveThe field for themaxInclusiverecord component.
-
-
Constructor Details
-
ValidatingIntSliderCallbacks
public ValidatingIntSliderCallbacks(int int2, int int3)
-
-
Method Details
-
method_41761
- Mappings:
Namespace Name Mixin selector official aLeik$f;a(Ljava/lang/Integer;)Ljava/util/Optional;intermediary method_41761Lnet/minecraft/class_7172$class_7174;method_41761(Ljava/lang/Integer;)Ljava/util/Optional;named method_41761Lnet/minecraft/client/option/SimpleOption$ValidatingIntSliderCallbacks;method_41761(Ljava/lang/Integer;)Ljava/util/Optional;
-
codec
- Specified by:
codecin interfaceSimpleOption.Callbacks<Integer>- 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;
-
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()- Specified by:
minInclusivein interfaceSimpleOption.IntSliderCallbacks- Mappings:
Namespace Name Mixin selector official dLeik$g;d()Iintermediary comp_593Lnet/minecraft/class_7172$class_7275;comp_593()Inamed minInclusiveLnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;minInclusive()I
-
maxInclusive
public int maxInclusive()- Specified by:
maxInclusivein interfaceSimpleOption.IntSliderCallbacks- Mappings:
Namespace Name Mixin selector official bLeik$g;b()Iintermediary comp_594Lnet/minecraft/class_7172$class_7275;comp_594()Inamed maxInclusiveLnet/minecraft/client/option/SimpleOption$IntSliderCallbacks;maxInclusive()I
-