Record Class DialogCommonData

java.lang.Object
java.lang.Record
net.minecraft.dialog.DialogCommonData
Record Components:
title -
externalTitle -
canCloseWithEscape -
pause -
afterAction -
body -
inputs -

public record DialogCommonData(Text title, Optional<Text> externalTitle, boolean canCloseWithEscape, boolean pause, AfterAction afterAction, List<DialogBody> body, List<DialogInput> inputs) extends Record
Mappings:
Namespace Name
named net/minecraft/dialog/DialogCommonData
intermediary net/minecraft/class_11417
official arr
named title
intermediary comp_4301
official b
named externalTitle
intermediary comp_4302
official c
named canCloseWithEscape
intermediary comp_4303
official d
named pause
intermediary comp_4392
official e
named afterAction
intermediary comp_4393
official f
named body
intermediary comp_4304
official g
named inputs
intermediary comp_4394
official h
  • Field Details

    • title

      private final Text title
      The field for the title record component.
    • externalTitle

      private final Optional<Text> externalTitle
      The field for the externalTitle record component.
    • canCloseWithEscape

      private final boolean canCloseWithEscape
      The field for the canCloseWithEscape record component.
    • pause

      private final boolean pause
      The field for the pause record component.
    • afterAction

      private final AfterAction afterAction
      The field for the afterAction record component.
    • body

      private final List<DialogBody> body
      The field for the body record component.
    • inputs

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

      public static final com.mojang.serialization.MapCodec<DialogCommonData> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/dialog/DialogCommonData;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_60618 Lnet/minecraft/class_11417;field_60618:Lcom/mojang/serialization/MapCodec;
      official a Larr;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • getExternalTitle

      public Text getExternalTitle()
      Mappings:
      Namespace Name Mixin selector
      named getExternalTitle Lnet/minecraft/dialog/DialogCommonData;getExternalTitle()Lnet/minecraft/text/Text;
      intermediary method_71695 Lnet/minecraft/class_11417;method_71695()Lnet/minecraft/class_2561;
      official a Larr;a()Lxo;
    • 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.
    • title

      public Text title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • externalTitle

      public Optional<Text> externalTitle()
      Returns the value of the externalTitle record component.
      Returns:
      the value of the externalTitle record component
    • canCloseWithEscape

      public boolean canCloseWithEscape()
      Returns the value of the canCloseWithEscape record component.
      Returns:
      the value of the canCloseWithEscape record component
    • pause

      public boolean pause()
      Returns the value of the pause record component.
      Returns:
      the value of the pause record component
    • afterAction

      public AfterAction afterAction()
      Returns the value of the afterAction record component.
      Returns:
      the value of the afterAction record component
    • body

      public List<DialogBody> body()
      Returns the value of the body record component.
      Returns:
      the value of the body record component
    • inputs

      public List<DialogInput> inputs()
      Returns the value of the inputs record component.
      Returns:
      the value of the inputs record component