Record Class SimpleInputFormDialog

java.lang.Object
java.lang.Record
net.minecraft.dialog.type.SimpleInputFormDialog
Record Components:
common -
inputs -
action -
All Implemented Interfaces:
Dialog, InputFormDialog

public record SimpleInputFormDialog(DialogCommonData common, List<InputFormDialog.DialogInput> inputs, InputFormDialog.DialogAction action) extends Record implements InputFormDialog
Mappings:
Namespace Name
named net/minecraft/dialog/type/SimpleInputFormDialog
intermediary net/minecraft/class_11431
official asd
named common
intermediary comp_4305
official h
named inputs
intermediary comp_4322
official i
named action
intermediary comp_4323
official j
  • Field Details

    • common

      private final DialogCommonData common
      The field for the common record component.
    • inputs

      private final List<InputFormDialog.DialogInput> inputs
      The field for the inputs record component.
    • action

      private final InputFormDialog.DialogAction action
      The field for the action record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<SimpleInputFormDialog> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/dialog/type/SimpleInputFormDialog;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_60636 Lnet/minecraft/class_11431;field_60636:Lcom/mojang/serialization/MapCodec;
      official a Lasd;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<SimpleInputFormDialog> getCodec()
      Specified by:
      getCodec in interface Dialog
      Specified by:
      getCodec in interface InputFormDialog
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/dialog/type/Dialog;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_71692 Lnet/minecraft/class_11419;method_71692()Lcom/mojang/serialization/MapCodec;
      official a Lart;a()Lcom/mojang/serialization/MapCodec;
    • 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.
    • common

      public DialogCommonData common()
      Returns the value of the common record component.
      Specified by:
      common in interface Dialog
      Returns:
      the value of the common record component
    • inputs

      Returns the value of the inputs record component.
      Returns:
      the value of the inputs record component
    • action

      Returns the value of the action record component.
      Returns:
      the value of the action record component