Record Class NoticeDialog

java.lang.Object
java.lang.Record
net.minecraft.dialog.type.NoticeDialog
Record Components:
common -
action -
All Implemented Interfaces:
Dialog, SimpleDialog

public record NoticeDialog(DialogCommonData common, DialogActionButtonData action) extends Record implements SimpleDialog
Mappings:
Namespace Name
named net/minecraft/dialog/type/NoticeDialog
intermediary net/minecraft/class_11428
official asa
named common
intermediary comp_4305
official i
named action
intermediary comp_4396
official j
  • Field Details

    • common

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

      private final DialogActionButtonData action
      The field for the action record component.
    • OK_BUTTON

      public static final DialogActionButtonData OK_BUTTON
      Mappings:
      Namespace Name Mixin selector
      named OK_BUTTON Lnet/minecraft/dialog/type/NoticeDialog;OK_BUTTON:Lnet/minecraft/dialog/DialogActionButtonData;
      intermediary field_60633 Lnet/minecraft/class_11428;field_60633:Lnet/minecraft/class_11519;
      official a Lasa;a:Laro;
    • CODEC

      public static final com.mojang.serialization.MapCodec<NoticeDialog> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/dialog/type/NoticeDialog;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_60634 Lnet/minecraft/class_11428;field_60634:Lcom/mojang/serialization/MapCodec;
      official h Lasa;h:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<NoticeDialog> getCodec()
      Specified by:
      getCodec in interface Dialog
      Specified by:
      getCodec in interface SimpleDialog
      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;
    • getCancelAction

      public Optional<DialogAction> getCancelAction()
      Specified by:
      getCancelAction in interface Dialog
      Mappings:
      Namespace Name Mixin selector
      named getCancelAction Lnet/minecraft/dialog/type/Dialog;getCancelAction()Ljava/util/Optional;
      intermediary method_72060 Lnet/minecraft/class_11419;method_72060()Ljava/util/Optional;
      official d Lart;d()Ljava/util/Optional;
    • getButtons

      public List<DialogActionButtonData> getButtons()
      Specified by:
      getButtons in interface SimpleDialog
      Mappings:
      Namespace Name Mixin selector
      named getButtons Lnet/minecraft/dialog/type/SimpleDialog;getButtons()Ljava/util/List;
      intermediary method_71698 Lnet/minecraft/class_11430;method_71698()Ljava/util/List;
      official b Lasc;b()Ljava/util/List;
    • 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
    • action

      public DialogActionButtonData action()
      Returns the value of the action record component.
      Returns:
      the value of the action record component