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/NumberRangeInputControlintermediary net/minecraft/class_11440official asynamed widthintermediary comp_4336official cnamed labelintermediary comp_4337official dnamed labelFormatintermediary comp_4338official enamed rangeInfointermediary comp_4339official f
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<NumberRangeInputControl> private final TextThe field for thelabelrecord component.private final StringThe field for thelabelFormatrecord component.private final NumberRangeInputControl.RangeInfoThe field for therangeInforecord component.private final intThe field for thewidthrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNumberRangeInputControl(int int2, Text text, String string, NumberRangeInputControl.RangeInfo rangeInfo) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<NumberRangeInputControl> getCodec()getFormattedLabel(String value) final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.Returns the value of thelabelFormatrecord component.Returns the value of therangeInforecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Field Details
-
width
private final int widthThe field for thewidthrecord component. -
label
The field for thelabelrecord component. -
labelFormat
The field for thelabelFormatrecord component. -
rangeInfo
The field for therangeInforecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/dialog/input/NumberRangeInputControl;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_60645Lnet/minecraft/class_11440;field_60645:Lcom/mojang/serialization/MapCodec;official aLasy;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
NumberRangeInputControl
public NumberRangeInputControl(int int2, Text text, String string, NumberRangeInputControl.RangeInfo rangeInfo)
-
-
Method Details
-
getCodec
- Specified by:
getCodecin interfaceInputControl- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/dialog/input/InputControl;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_71717Lnet/minecraft/class_11438;method_71717()Lcom/mojang/serialization/MapCodec;official aLasw;a()Lcom/mojang/serialization/MapCodec;
-
getFormattedLabel
- Mappings:
Namespace Name Mixin selector named getFormattedLabelLnet/minecraft/dialog/input/NumberRangeInputControl;getFormattedLabel(Ljava/lang/String;)Lnet/minecraft/text/Text;intermediary method_71722Lnet/minecraft/class_11440;method_71722(Ljava/lang/String;)Lnet/minecraft/class_2561;official aLasy;a(Ljava/lang/String;)Lxx;
-
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 thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
labelFormat
Returns the value of thelabelFormatrecord component.- Returns:
- the value of the
labelFormatrecord component
-
rangeInfo
Returns the value of therangeInforecord component.- Returns:
- the value of the
rangeInforecord component
-