Record Class InputFormDialog.DialogAction

java.lang.Object
java.lang.Record
net.minecraft.dialog.type.InputFormDialog.DialogAction
Record Components:
id -
buttonData -
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$DialogAction
intermediary net/minecraft/class_11423$class_11425
official arx$b
named id
intermediary comp_4314
official b
named buttonData
intermediary comp_4315
official c
named method
intermediary comp_4316
official d
  • Field Details

    • id

      private final String id
      The field for the id record component.
    • buttonData

      private final DialogButtonData buttonData
      The field for the buttonData record component.
    • method

      private final SubmitMethod method
      The field for the method record component.
    • CODEC

      public static final com.mojang.serialization.Codec<InputFormDialog.DialogAction> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/dialog/type/InputFormDialog$DialogAction;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_60630 Lnet/minecraft/class_11423$class_11425;field_60630:Lcom/mojang/serialization/Codec;
      official a Larx$b;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • buttonData

      public DialogButtonData buttonData()
      Returns the value of the buttonData record component.
      Returns:
      the value of the buttonData record component
    • method

      public SubmitMethod method()
      Returns the value of the method record component.
      Returns:
      the value of the method record component