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-step-
- Enclosing class:
NumberRangeInputControl
public static record NumberRangeInputControl.RangeInfo(float start, float end, Optional<Float> initial, Optional<Float> step)
extends Record
- Mappings:
Namespace Name named net/minecraft/dialog/input/NumberRangeInputControl$RangeInfointermediary net/minecraft/class_11440$class_11441official asy$anamed startintermediary comp_4340official bnamed endintermediary comp_4341official cnamed initialintermediary comp_4342official dnamed stepintermediary comp_4382official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<NumberRangeInputControl.RangeInfo> private final floatThe field for theendrecord component.The field for theinitialrecord component.private final floatThe field for thestartrecord component.The field for thesteprecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.floatprivate floatfinal inthashCode()Returns a hash code value for this object.initial()Returns the value of theinitialrecord component.private booleanisValueOutOfRange(float value) floatsliderProgressToValue(float sliderProgress) floatstart()Returns the value of thestartrecord component.step()Returns the value of thesteprecord component.final StringtoString()Returns a string representation of this record class.private floatvalueToSliderProgress(float value)
-
Field Details
-
start
private final float startThe field for thestartrecord component. -
end
private final float endThe field for theendrecord component. -
initial
The field for theinitialrecord component. -
step
The field for thesteprecord 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 aLasy$a;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
RangeInfo
-
-
Method Details
-
sliderProgressToValue
public float sliderProgressToValue(float sliderProgress) - Mappings:
Namespace Name Mixin selector named sliderProgressToValueLnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;sliderProgressToValue(F)Fintermediary method_71728Lnet/minecraft/class_11440$class_11441;method_71728(F)Fofficial aLasy$a;a(F)F
-
isValueOutOfRange
private boolean isValueOutOfRange(float value) - Mappings:
Namespace Name Mixin selector named isValueOutOfRangeLnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;isValueOutOfRange(F)Zintermediary method_71959Lnet/minecraft/class_11440$class_11441;method_71959(F)Zofficial bLasy$a;b(F)Z
-
getInitialValue
private float getInitialValue()- Mappings:
Namespace Name Mixin selector named getInitialValueLnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;getInitialValue()Fintermediary method_71961Lnet/minecraft/class_11440$class_11441;method_71961()Fofficial fLasy$a;f()F
-
getInitialSliderProgress
public float getInitialSliderProgress()- Mappings:
Namespace Name Mixin selector named getInitialSliderProgressLnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;getInitialSliderProgress()Fintermediary method_71723Lnet/minecraft/class_11440$class_11441;method_71723()Fofficial aLasy$a;a()F
-
valueToSliderProgress
private float valueToSliderProgress(float value) - Mappings:
Namespace Name Mixin selector named valueToSliderProgressLnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;valueToSliderProgress(F)Fintermediary method_71960Lnet/minecraft/class_11440$class_11441;method_71960(F)Fofficial cLasy$a;c(F)F
-
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 float start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
public float 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
-
step
Returns the value of thesteprecord component.- Returns:
- the value of the
steprecord component
-