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$RangeInfo
intermediary net/minecraft/class_11440$class_11441
official ass$a
named start
intermediary comp_4340
official b
named end
intermediary comp_4341
official c
named initial
intermediary comp_4342
official d
named step
intermediary comp_4382
official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<NumberRangeInputControl.RangeInfo> private final float
The field for theend
record component.The field for theinitial
record component.private final float
The field for thestart
record component.The field for thestep
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
end()
Returns the value of theend
record component.final boolean
Indicates whether some other object is "equal to" this one.float
private float
final int
hashCode()
Returns a hash code value for this object.initial()
Returns the value of theinitial
record component.private boolean
isValueOutOfRange
(float value) float
sliderProgressToValue
(float sliderProgress) float
start()
Returns the value of thestart
record component.step()
Returns the value of thestep
record component.final String
toString()
Returns a string representation of this record class.private float
valueToSliderProgress
(float value)
-
Field Details
-
start
private final float startThe field for thestart
record component. -
end
private final float endThe field for theend
record component. -
initial
The field for theinitial
record component. -
step
The field for thestep
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_60646
Lnet/minecraft/class_11440$class_11441;field_60646:Lcom/mojang/serialization/MapCodec;
official a
Lass$a;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
RangeInfo
-
-
Method Details
-
sliderProgressToValue
public float sliderProgressToValue(float sliderProgress) - Mappings:
Namespace Name Mixin selector named sliderProgressToValue
Lnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;sliderProgressToValue(F)F
intermediary method_71728
Lnet/minecraft/class_11440$class_11441;method_71728(F)F
official a
Lass$a;a(F)F
-
isValueOutOfRange
private boolean isValueOutOfRange(float value) - Mappings:
Namespace Name Mixin selector named isValueOutOfRange
Lnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;isValueOutOfRange(F)Z
intermediary method_71959
Lnet/minecraft/class_11440$class_11441;method_71959(F)Z
official b
Lass$a;b(F)Z
-
getInitialValue
private float getInitialValue()- Mappings:
Namespace Name Mixin selector named getInitialValue
Lnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;getInitialValue()F
intermediary method_71961
Lnet/minecraft/class_11440$class_11441;method_71961()F
official f
Lass$a;f()F
-
getInitialSliderProgress
public float getInitialSliderProgress()- Mappings:
Namespace Name Mixin selector named getInitialSliderProgress
Lnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;getInitialSliderProgress()F
intermediary method_71723
Lnet/minecraft/class_11440$class_11441;method_71723()F
official a
Lass$a;a()F
-
valueToSliderProgress
private float valueToSliderProgress(float value) - Mappings:
Namespace Name Mixin selector named valueToSliderProgress
Lnet/minecraft/dialog/input/NumberRangeInputControl$RangeInfo;valueToSliderProgress(F)F
intermediary method_71960
Lnet/minecraft/class_11440$class_11441;method_71960(F)F
official c
Lass$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 thestart
record component.- Returns:
- the value of the
start
record component
-
end
public float end()Returns the value of theend
record component.- Returns:
- the value of the
end
record component
-
initial
Returns the value of theinitial
record component.- Returns:
- the value of the
initial
record component
-
step
Returns the value of thestep
record component.- Returns:
- the value of the
step
record component
-