Record Class NoticeDialog

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

public record NoticeDialog(DialogCommonData common, DialogButton button) 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 button
intermediary comp_4320
official j
  • Field Details

    • common

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

      private final DialogButton button
      The field for the button record component.
    • OK_BUTTON

      public static final DialogButton OK_BUTTON
      Mappings:
      Namespace Name Mixin selector
      named OK_BUTTON Lnet/minecraft/dialog/type/NoticeDialog;OK_BUTTON:Lnet/minecraft/dialog/DialogButton;
      intermediary field_60633 Lnet/minecraft/class_11428;field_60633:Lnet/minecraft/class_11415;
      official a Lasa;a:Larp;
    • 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;
    • onCancel

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

      public List<DialogButton> 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 c Lasc;c()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
    • button

      public DialogButton button()
      Returns the value of the button record component.
      Returns:
      the value of the button record component