Record Class ConfirmationDialog

java.lang.Object
java.lang.Record
net.minecraft.dialog.type.ConfirmationDialog
Record Components:
common -
yesButton -
noButton -
All Implemented Interfaces:
Dialog, SimpleDialog

public record ConfirmationDialog(DialogCommonData common, DialogActionButtonData yesButton, DialogActionButtonData noButton) extends Record implements SimpleDialog
Mappings:
Namespace Name
named net/minecraft/dialog/type/ConfirmationDialog
intermediary net/minecraft/class_11418
official ars
named common
intermediary comp_4305
official h
named yesButton
intermediary comp_4306
official i
named noButton
intermediary comp_4307
official j
  • Field Details

    • common

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

      private final DialogActionButtonData yesButton
      The field for the yesButton record component.
    • noButton

      private final DialogActionButtonData noButton
      The field for the noButton record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<ConfirmationDialog> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/dialog/type/ConfirmationDialog;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_60619 Lnet/minecraft/class_11418;field_60619:Lcom/mojang/serialization/MapCodec;
      official a Lars;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<ConfirmationDialog> 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
    • yesButton

      public DialogActionButtonData yesButton()
      Returns the value of the yesButton record component.
      Returns:
      the value of the yesButton record component
    • noButton

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