Record Class Dialog.DialogList
java.lang.Object
java.lang.Record
net.minestom.server.dialog.Dialog.DialogList
- All Implemented Interfaces:
DialogLike, Dialog, Holder<Dialog>, Holder.Direct<Dialog>
- Enclosing interface:
Dialog
public static record Dialog.DialogList(DialogMetadata metadata, HolderSet<Dialog> dialogs, @Nullable DialogActionButton exitAction, int columns, int buttonWidth)
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
ConstructorsConstructorDescriptionDialogList(DialogMetadata metadata, HolderSet<Dialog> dialogs, @Nullable DialogActionButton exitAction, int columns, int buttonWidth) Creates an instance of aDialogListrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebuttonWidthrecord component.StructCodec<? extends Dialog> codec()intcolumns()Returns the value of thecolumnsrecord component.dialogs()Returns the value of thedialogsrecord 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
-
DialogList
public DialogList(DialogMetadata metadata, HolderSet<Dialog> dialogs, @Nullable @Nullable DialogActionButton exitAction, int columns, int buttonWidth) Creates an instance of aDialogListrecord class.- Parameters:
metadata- the value for themetadatarecord componentdialogs- the value for thedialogsrecord componentexitAction- the value for theexitActionrecord componentcolumns- the value for thecolumnsrecord componentbuttonWidth- the value for thebuttonWidthrecord 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. -
dialogs
-
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
-
buttonWidth
public int buttonWidth()Returns the value of thebuttonWidthrecord component.- Returns:
- the value of the
buttonWidthrecord component
-