Record Class Dialog.MultiAction
java.lang.Object
java.lang.Record
net.minestom.server.dialog.Dialog.MultiAction
- All Implemented Interfaces:
DialogLike, Dialog, Holder<Dialog>, Holder.Direct<Dialog>
- Enclosing interface:
Dialog
public static record Dialog.MultiAction(DialogMetadata metadata, List<DialogActionButton> actions, @Nullable DialogActionButton exitAction, int columns)
extends Record
implements Dialog
-
Nested Class Summary
Nested classes/interfaces inherited from interface Dialog
Dialog.Confirmation, Dialog.DialogList, Dialog.MultiAction, Dialog.Notice, Dialog.ServerLinksNested classes/interfaces inherited from interface Holder
Holder.Direct<T> -
Field Summary
FieldsFields inherited from interface Dialog
NETWORK_TYPE, REGISTRY, REGISTRY_CODEC, REGISTRY_NETWORK_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionMultiAction(DialogMetadata metadata, List<DialogActionButton> actions, @Nullable DialogActionButton exitAction, int columns) Creates an instance of aMultiActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Returns the value of theactionsrecord component.StructCodec<? extends Dialog> codec()intcolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexitActionrecord component.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
MultiAction
public MultiAction(DialogMetadata metadata, List<DialogActionButton> actions, @Nullable @Nullable DialogActionButton exitAction, int columns) Creates an instance of aMultiActionrecord class.- Parameters:
metadata- the value for themetadatarecord componentactions- the value for theactionsrecord componentexitAction- the value for theexitActionrecord componentcolumns- the value for thecolumnsrecord component
-
-
Method Details
-
codec
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
metadata
Returns the value of themetadatarecord component. -
actions
Returns the value of theactionsrecord component.- Returns:
- the value of the
actionsrecord component
-
exitAction
Returns the value of theexitActionrecord component.- Returns:
- the value of the
exitActionrecord component
-
columns
public int columns()Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-