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/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 Summary
FieldsModifier and TypeFieldDescriptionprivate final AfterAction
The field for theafterAction
record component.private final List
<DialogBody> The field for thebody
record component.private final boolean
The field for thecanCloseWithEscape
record component.static final com.mojang.serialization.MapCodec
<DialogCommonData> The field for theexternalTitle
record component.private final List
<DialogInput> The field for theinputs
record component.private final boolean
The field for thepause
record component.private final Text
The field for thetitle
record 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 theafterAction
record component.body()
Returns the value of thebody
record component.boolean
Returns the value of thecanCloseWithEscape
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexternalTitle
record component.final int
hashCode()
Returns a hash code value for this object.inputs()
Returns the value of theinputs
record component.boolean
pause()
Returns the value of thepause
record component.title()
Returns the value of thetitle
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
title
The field for thetitle
record component. -
externalTitle
The field for theexternalTitle
record component. -
canCloseWithEscape
private final boolean canCloseWithEscapeThe field for thecanCloseWithEscape
record component. -
pause
private final boolean pauseThe field for thepause
record component. -
afterAction
The field for theafterAction
record component. -
body
The field for thebody
record component. -
inputs
The field for theinputs
record component. -
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
-
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 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
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 thetitle
record component.- Returns:
- the value of the
title
record component
-
externalTitle
Returns the value of theexternalTitle
record component.- Returns:
- the value of the
externalTitle
record component
-
canCloseWithEscape
public boolean canCloseWithEscape()Returns the value of thecanCloseWithEscape
record component.- Returns:
- the value of the
canCloseWithEscape
record component
-
pause
public boolean pause()Returns the value of thepause
record component.- Returns:
- the value of the
pause
record component
-
afterAction
Returns the value of theafterAction
record component.- Returns:
- the value of the
afterAction
record component
-
body
Returns the value of thebody
record component.- Returns:
- the value of the
body
record component
-
inputs
Returns the value of theinputs
record component.- Returns:
- the value of the
inputs
record component
-