Package net.minestom.server.dialog
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(@NotNull DialogMetadata metadata, @NotNull List<DialogActionButton> actions, @Nullable DialogActionButton exitAction, int columns)
extends Record
implements Dialog
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minestom.server.dialog.Dialog
Dialog.Confirmation, Dialog.DialogList, Dialog.MultiAction, Dialog.Notice, Dialog.ServerLinksNested classes/interfaces inherited from interface net.minestom.server.registry.Holder
Holder.Direct<T> -
Field Summary
FieldsFields inherited from interface net.minestom.server.dialog.Dialog
NETWORK_TYPE, REGISTRY, REGISTRY_CODEC, REGISTRY_NETWORK_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionMultiAction(@NotNull DialogMetadata metadata, @NotNull List<DialogActionButton> actions, @Nullable DialogActionButton exitAction, int columns) Creates an instance of aMultiActionrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull List<DialogActionButton> actions()Returns the value of theactionsrecord component.@NotNull StructCodec<? extends Dialog> codec()intcolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable DialogActionButtonReturns the value of theexitActionrecord component.final inthashCode()Returns a hash code value for this object.@NotNull DialogMetadatametadata()Returns the value of themetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
MultiAction
public MultiAction(@NotNull @NotNull DialogMetadata metadata, @NotNull @NotNull 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
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 '=='. -
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
-