Record Class MultiActionDialog

java.lang.Object
java.lang.Record
net.minecraft.dialog.type.MultiActionDialog
Record Components:
common -
actions -
exitAction -
columns -
All Implemented Interfaces:
ColumnsDialog, Dialog

public record MultiActionDialog(DialogCommonData common, List<DialogActionButtonData> actions, Optional<DialogActionButtonData> exitAction, int columns) extends Record implements ColumnsDialog
Mappings:
Namespace Name
named net/minecraft/dialog/type/MultiActionDialog
intermediary net/minecraft/class_11426
official arz
named common
intermediary comp_4305
official h
named actions
intermediary comp_4317
official i
named exitAction
intermediary comp_4395
official j
named columns
intermediary comp_4310
official k
  • Field Details

    • common

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

      private final List<DialogActionButtonData> actions
      The field for the actions record component.
    • exitAction

      private final Optional<DialogActionButtonData> exitAction
      The field for the exitAction record component.
    • columns

      private final int columns
      The field for the columns record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<MultiActionDialog> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/dialog/type/MultiActionDialog;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_60631 Lnet/minecraft/class_11426;field_60631:Lcom/mojang/serialization/MapCodec;
      official a Larz;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<MultiActionDialog> getCodec()
      Specified by:
      getCodec in interface ColumnsDialog
      Specified by:
      getCodec in interface Dialog
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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
    • actions

      public List<DialogActionButtonData> actions()
      Returns the value of the actions record component.
      Returns:
      the value of the actions record component
    • exitAction

      public Optional<DialogActionButtonData> exitAction()
      Returns the value of the exitAction record component.
      Specified by:
      exitAction in interface ColumnsDialog
      Returns:
      the value of the exitAction record component
    • columns

      public int columns()
      Returns the value of the columns record component.
      Specified by:
      columns in interface ColumnsDialog
      Returns:
      the value of the columns record component