Package net.minecraft.dialog.type
Record Class InputFormDialog.DialogAction
java.lang.Object
java.lang.Record
net.minecraft.dialog.type.InputFormDialog.DialogAction
- Record Components:
id--method-
- Enclosing interface:
InputFormDialog
public static record InputFormDialog.DialogAction(String id, DialogButtonData buttonData, SubmitMethod method)
extends Record
- Mappings:
Namespace Name named net/minecraft/dialog/type/InputFormDialog$DialogActionintermediary net/minecraft/class_11423$class_11425official arx$bnamed idintermediary comp_4314official bnamed buttonDataintermediary comp_4315official cnamed methodintermediary comp_4316official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DialogButtonDataThe field for thebuttonDatarecord component.static final com.mojang.serialization.Codec<InputFormDialog.DialogAction> private final StringThe field for theidrecord component.private final SubmitMethodThe field for themethodrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDialogAction(String string, DialogButtonData dialogButtonData, SubmitMethod submitMethod) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebuttonDatarecord 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.method()Returns the value of themethodrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
buttonData
The field for thebuttonDatarecord component. -
method
The field for themethodrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/dialog/type/InputFormDialog$DialogAction;CODEC:Lcom/mojang/serialization/Codec;intermediary field_60630Lnet/minecraft/class_11423$class_11425;field_60630:Lcom/mojang/serialization/Codec;official aLarx$b;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
DialogAction
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
buttonData
Returns the value of thebuttonDatarecord component.- Returns:
- the value of the
buttonDatarecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-