Package net.minecraft.dialog.type
Record Class MultiActionDialog
java.lang.Object
java.lang.Record
net.minecraft.dialog.type.MultiActionDialog
- Record Components:
common
-actions
-exitAction
-columns
-
- All Implemented Interfaces:
ColumnsDialog
,Dialog
public record MultiActionDialog(DialogCommonData common, List<DialogActionButtonData> actions, Optional<DialogActionButtonData> exitAction, int columns)
extends Record
implements ColumnsDialog
- Mappings:
Namespace Name named net/minecraft/dialog/type/MultiActionDialog
intermediary net/minecraft/class_11426
official arz
named common
intermediary comp_4305
official h
named actions
intermediary comp_4317
official i
named exitAction
intermediary comp_4395
official j
named columns
intermediary comp_4310
official k
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<DialogActionButtonData> The field for theactions
record component.static final com.mojang.serialization.MapCodec
<MultiActionDialog> private final int
The field for thecolumns
record component.private final DialogCommonData
The field for thecommon
record component.private final Optional
<DialogActionButtonData> The field for theexitAction
record component.Fields inherited from interface net.minecraft.dialog.type.Dialog
ENTRY_CODEC, ENTRY_LIST_CODEC, ENTRY_PACKET_CODEC, PACKET_CODEC, WIDTH_CODEC
-
Constructor Summary
ConstructorsConstructorDescriptionMultiActionDialog
(DialogCommonData dialogCommonData, List<DialogActionButtonData> list, Optional<DialogActionButtonData> optional, int int2) -
Method Summary
Modifier and TypeMethodDescriptionactions()
Returns the value of theactions
record component.int
columns()
Returns the value of thecolumns
record component.common()
Returns the value of thecommon
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexitAction
record component.com.mojang.serialization.MapCodec
<MultiActionDialog> getCodec()
final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.dialog.type.ColumnsDialog
getCancelAction
-
Field Details
-
common
The field for thecommon
record component. -
actions
The field for theactions
record component. -
exitAction
The field for theexitAction
record component. -
columns
private final int columnsThe field for thecolumns
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/dialog/type/MultiActionDialog;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_60631
Lnet/minecraft/class_11426;field_60631:Lcom/mojang/serialization/MapCodec;
official a
Larz;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
MultiActionDialog
public MultiActionDialog(DialogCommonData dialogCommonData, List<DialogActionButtonData> list, Optional<DialogActionButtonData> optional, int int2)
-
-
Method Details
-
getCodec
- Specified by:
getCodec
in interfaceColumnsDialog
- Specified by:
getCodec
in interfaceDialog
- 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;
-
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 '=='. -
common
Returns the value of thecommon
record component. -
actions
Returns the value of theactions
record component.- Returns:
- the value of the
actions
record component
-
exitAction
Returns the value of theexitAction
record component.- Specified by:
exitAction
in interfaceColumnsDialog
- Returns:
- the value of the
exitAction
record component
-
columns
public int columns()Returns the value of thecolumns
record component.- Specified by:
columns
in interfaceColumnsDialog
- Returns:
- the value of the
columns
record component
-