Package net.minecraft.dialog
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/DialogCommonDataintermediary net/minecraft/class_11417official arxnamed titleintermediary comp_4301official bnamed externalTitleintermediary comp_4302official cnamed canCloseWithEscapeintermediary comp_4303official dnamed pauseintermediary comp_4392official enamed afterActionintermediary comp_4393official fnamed bodyintermediary comp_4304official gnamed inputsintermediary comp_4394official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AfterActionThe field for theafterActionrecord component.private final List<DialogBody> The field for thebodyrecord component.private final booleanThe field for thecanCloseWithEscaperecord component.static final com.mojang.serialization.MapCodec<DialogCommonData> The field for theexternalTitlerecord component.private final List<DialogInput> The field for theinputsrecord component.private final booleanThe field for thepauserecord component.private final TextThe field for thetitlerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDialogCommonData(Text text, Optional<Text> optional, boolean bool, boolean bool2, AfterAction afterAction, List<DialogBody> list, List<DialogInput> list2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theafterActionrecord component.body()Returns the value of thebodyrecord component.booleanReturns the value of thecanCloseWithEscaperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalTitlerecord component.final inthashCode()Returns a hash code value for this object.inputs()Returns the value of theinputsrecord component.booleanpause()Returns the value of thepauserecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
title
The field for thetitlerecord component. -
externalTitle
The field for theexternalTitlerecord component. -
canCloseWithEscape
private final boolean canCloseWithEscapeThe field for thecanCloseWithEscaperecord component. -
pause
private final boolean pauseThe field for thepauserecord component. -
afterAction
The field for theafterActionrecord component. -
body
The field for thebodyrecord component. -
inputs
The field for theinputsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/dialog/DialogCommonData;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_60618Lnet/minecraft/class_11417;field_60618:Lcom/mojang/serialization/MapCodec;official aLarx;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
DialogCommonData
public DialogCommonData(Text text, Optional<Text> optional, boolean bool, boolean bool2, AfterAction afterAction, List<DialogBody> list, List<DialogInput> list2)
-
-
Method Details
-
getExternalTitle
- Mappings:
Namespace Name Mixin selector named getExternalTitleLnet/minecraft/dialog/DialogCommonData;getExternalTitle()Lnet/minecraft/text/Text;intermediary method_71695Lnet/minecraft/class_11417;method_71695()Lnet/minecraft/class_2561;official aLarx;a()Lxx;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
externalTitle
Returns the value of theexternalTitlerecord component.- Returns:
- the value of the
externalTitlerecord component
-
canCloseWithEscape
public boolean canCloseWithEscape()Returns the value of thecanCloseWithEscaperecord component.- Returns:
- the value of the
canCloseWithEscaperecord component
-
pause
public boolean pause()Returns the value of thepauserecord component.- Returns:
- the value of the
pauserecord component
-
afterAction
Returns the value of theafterActionrecord component.- Returns:
- the value of the
afterActionrecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
inputs
Returns the value of theinputsrecord component.- Returns:
- the value of the
inputsrecord component
-