Package net.minecraft.dialog.input
Record Class SingleOptionInputControl.Entry
java.lang.Object
java.lang.Record
net.minecraft.dialog.input.SingleOptionInputControl.Entry
- Record Components:
id-display-initial-
- Enclosing class:
SingleOptionInputControl
public static record SingleOptionInputControl.Entry(String id, Optional<Text> display, boolean initial)
extends Record
- Mappings:
Namespace Name named net/minecraft/dialog/input/SingleOptionInputControl$Entryintermediary net/minecraft/class_11442$class_11443official asz$anamed idintermediary comp_4348official cnamed displayintermediary comp_4349official dnamed initialintermediary comp_4350official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SingleOptionInputControl.Entry> static final com.mojang.serialization.Codec<SingleOptionInputControl.Entry> The field for thedisplayrecord component.private final StringThe field for theidrecord component.private final booleanThe field for theinitialrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondisplay()Returns the value of thedisplayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleaninitial()Returns the value of theinitialrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
display
The field for thedisplayrecord component. -
initial
private final boolean initialThe field for theinitialrecord component. -
BASE_CODEC
- Mappings:
Namespace Name Mixin selector named BASE_CODECLnet/minecraft/dialog/input/SingleOptionInputControl$Entry;BASE_CODEC:Lcom/mojang/serialization/Codec;intermediary field_60648Lnet/minecraft/class_11442$class_11443;field_60648:Lcom/mojang/serialization/Codec;official aLasz$a;a:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/dialog/input/SingleOptionInputControl$Entry;CODEC:Lcom/mojang/serialization/Codec;intermediary field_60649Lnet/minecraft/class_11442$class_11443;field_60649:Lcom/mojang/serialization/Codec;official bLasz$a;b:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Entry
-
-
Method Details
-
getDisplay
- Mappings:
Namespace Name Mixin selector named getDisplayLnet/minecraft/dialog/input/SingleOptionInputControl$Entry;getDisplay()Lnet/minecraft/text/Text;intermediary method_71733Lnet/minecraft/class_11442$class_11443;method_71733()Lnet/minecraft/class_2561;official aLasz$a;a()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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
display
Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-
initial
public boolean initial()Returns the value of theinitialrecord component.- Returns:
- the value of the
initialrecord component
-