Package net.minecraft.dialog.input
Record Class NumberRangeInputControl
java.lang.Object
java.lang.Record
net.minecraft.dialog.input.NumberRangeInputControl
- Record Components:
width
-label
-labelFormat
-rangeInfo
-
- All Implemented Interfaces:
InputControl
public record NumberRangeInputControl(int width, Text label, String labelFormat, NumberRangeInputControl.RangeInfo rangeInfo)
extends Record
implements InputControl
- Mappings:
Namespace Name named net/minecraft/dialog/input/NumberRangeInputControl
intermediary net/minecraft/class_11440
official ass
named width
intermediary comp_4336
official c
named label
intermediary comp_4337
official d
named labelFormat
intermediary comp_4338
official e
named rangeInfo
intermediary comp_4339
official f
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<NumberRangeInputControl> private final Text
The field for thelabel
record component.private final String
The field for thelabelFormat
record component.private final NumberRangeInputControl.RangeInfo
The field for therangeInfo
record component.private final int
The field for thewidth
record component. -
Constructor Summary
ConstructorsConstructorDescriptionNumberRangeInputControl
(int int2, Text text, String string, NumberRangeInputControl.RangeInfo rangeInfo) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec
<NumberRangeInputControl> getCodec()
getFormattedLabel
(String value) final int
hashCode()
Returns a hash code value for this object.label()
Returns the value of thelabel
record component.Returns the value of thelabelFormat
record component.Returns the value of therangeInfo
record component.final String
toString()
Returns a string representation of this record class.int
width()
Returns the value of thewidth
record component.
-
Field Details
-
width
private final int widthThe field for thewidth
record component. -
label
The field for thelabel
record component. -
labelFormat
The field for thelabelFormat
record component. -
rangeInfo
The field for therangeInfo
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/dialog/input/NumberRangeInputControl;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_60645
Lnet/minecraft/class_11440;field_60645:Lcom/mojang/serialization/MapCodec;
official a
Lass;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
NumberRangeInputControl
public NumberRangeInputControl(int int2, Text text, String string, NumberRangeInputControl.RangeInfo rangeInfo)
-
-
Method Details
-
getCodec
- Specified by:
getCodec
in interfaceInputControl
- Mappings:
Namespace Name Mixin selector named getCodec
Lnet/minecraft/dialog/input/InputControl;getCodec()Lcom/mojang/serialization/MapCodec;
intermediary method_71717
Lnet/minecraft/class_11438;method_71717()Lcom/mojang/serialization/MapCodec;
official a
Lasq;a()Lcom/mojang/serialization/MapCodec;
-
getFormattedLabel
- Mappings:
Namespace Name Mixin selector named getFormattedLabel
Lnet/minecraft/dialog/input/NumberRangeInputControl;getFormattedLabel(Ljava/lang/String;)Lnet/minecraft/text/Text;
intermediary method_71722
Lnet/minecraft/class_11440;method_71722(Ljava/lang/String;)Lnet/minecraft/class_2561;
official a
Lass;a(Ljava/lang/String;)Lxo;
-
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 '=='. -
width
public int width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
label
Returns the value of thelabel
record component.- Returns:
- the value of the
label
record component
-
labelFormat
Returns the value of thelabelFormat
record component.- Returns:
- the value of the
labelFormat
record component
-
rangeInfo
Returns the value of therangeInfo
record component.- Returns:
- the value of the
rangeInfo
record component
-