Package net.minecraft.dialog.input
Record Class SingleOptionInputControl
java.lang.Object
java.lang.Record
net.minecraft.dialog.input.SingleOptionInputControl
- Record Components:
width
-entries
-label
-labelVisible
-
- All Implemented Interfaces:
InputControl
public record SingleOptionInputControl(int width, List<SingleOptionInputControl.Entry> entries, Text label, boolean labelVisible)
extends Record
implements InputControl
- Mappings:
Namespace Name named net/minecraft/dialog/input/SingleOptionInputControl
intermediary net/minecraft/class_11442
official ast
named width
intermediary comp_4344
official c
named entries
intermediary comp_4345
official d
named label
intermediary comp_4346
official e
named labelVisible
intermediary comp_4347
official f
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<SingleOptionInputControl> private final List
<SingleOptionInputControl.Entry> The field for theentries
record component.private final Text
The field for thelabel
record component.private final boolean
The field for thelabelVisible
record component.private final int
The field for thewidth
record component. -
Constructor Summary
ConstructorsConstructorDescriptionSingleOptionInputControl
(int int2, List<SingleOptionInputControl.Entry> list, Text text, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionentries()
Returns the value of theentries
record component.final boolean
Indicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec
<SingleOptionInputControl> getCodec()
final int
hashCode()
Returns a hash code value for this object.label()
Returns the value of thelabel
record component.boolean
Returns the value of thelabelVisible
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. -
entries
The field for theentries
record component. -
label
The field for thelabel
record component. -
labelVisible
private final boolean labelVisibleThe field for thelabelVisible
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/dialog/input/SingleOptionInputControl;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_60647
Lnet/minecraft/class_11442;field_60647:Lcom/mojang/serialization/MapCodec;
official a
Last;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
SingleOptionInputControl
public SingleOptionInputControl(int int2, List<SingleOptionInputControl.Entry> list, Text text, boolean bool)
-
-
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;
-
getInitialEntry
- Mappings:
Namespace Name Mixin selector named getInitialEntry
Lnet/minecraft/dialog/input/SingleOptionInputControl;getInitialEntry()Ljava/util/Optional;
intermediary method_71731
Lnet/minecraft/class_11442;method_71731()Ljava/util/Optional;
official b
Last;b()Ljava/util/Optional;
-
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
-
entries
Returns the value of theentries
record component.- Returns:
- the value of the
entries
record component
-
label
Returns the value of thelabel
record component.- Returns:
- the value of the
label
record component
-
labelVisible
public boolean labelVisible()Returns the value of thelabelVisible
record component.- Returns:
- the value of the
labelVisible
record component
-