Package net.minecraft.dialog.input
Record Class NumberRangeInputControl.RangeInfo
java.lang.Object
java.lang.Record
net.minecraft.dialog.input.NumberRangeInputControl.RangeInfo
- Record Components:
start-end-initial-steps-
- Enclosing class:
NumberRangeInputControl
public static record NumberRangeInputControl.RangeInfo(double start, double end, Optional<Double> initial, int steps)
extends Record
- Mappings:
Namespace Name named net/minecraft/dialog/input/NumberRangeInputControl$RangeInfointermediary net/minecraft/class_11440$class_11441official ask$anamed startintermediary comp_4340official bnamed endintermediary comp_4341official cnamed initialintermediary comp_4342official dnamed stepsintermediary comp_4343official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<NumberRangeInputControl.RangeInfo> private final doubleThe field for theendrecord component.The field for theinitialrecord component.private final doubleThe field for thestartrecord component.private final intThe field for thestepsrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.doublefinal inthashCode()Returns a hash code value for this object.initial()Returns the value of theinitialrecord component.doublelerp(double value) doubleroundToStep(double value) doublestart()Returns the value of thestartrecord component.intsteps()Returns the value of thestepsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
start
private final double startThe field for thestartrecord component. -
end
private final double endThe field for theendrecord component. -
initial
The field for theinitialrecord component. -
steps
private final int stepsThe field for thestepsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_60646Lnet/minecraft/class_11440$class_11441;field_60646:Lcom/mojang/serialization/MapCodec;official aLask$a;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
RangeInfo
-
-
Method Details
-
roundToStep
public double roundToStep(double value) - Mappings:
Namespace Name Mixin selector named roundToStepLnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;roundToStep(D)Dintermediary method_71724Lnet/minecraft/class_11440$class_11441;method_71724(D)Dofficial aLask$a;a(D)D
-
lerp
public double lerp(double value) - Mappings:
Namespace Name Mixin selector named lerpLnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;lerp(D)Dintermediary method_71728Lnet/minecraft/class_11440$class_11441;method_71728(D)Dofficial bLask$a;b(D)D
-
getInitialValue
public double getInitialValue()- Mappings:
Namespace Name Mixin selector named getInitialValueLnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;getInitialValue()Dintermediary method_71723Lnet/minecraft/class_11440$class_11441;method_71723()Dofficial aLask$a;a()D
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
start
public double start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
public double end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
initial
Returns the value of theinitialrecord component.- Returns:
- the value of the
initialrecord component
-
steps
public int steps()Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-