Package net.minestom.server.dialog
Record Class Dialog.DialogList
java.lang.Object
java.lang.Record
net.minestom.server.dialog.Dialog.DialogList
- All Implemented Interfaces:
Dialog,Holder<Dialog>,Holder.Direct<Dialog>
- Enclosing interface:
Dialog
public static record Dialog.DialogList(@NotNull DialogMetadata metadata, @NotNull HolderSet<Dialog> dialogs, @Nullable DialogActionButton exitAction, int columns, int buttonWidth)
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
ConstructorsConstructorDescriptionDialogList(@NotNull DialogMetadata metadata, @NotNull 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.@NotNull 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.@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
-
DialogList
public DialogList(@NotNull @NotNull DialogMetadata metadata, @NotNull @NotNull 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
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. -
dialogs
Returns the value of thedialogsrecord component.- Returns:
- the value of the
dialogsrecord 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
-
buttonWidth
public int buttonWidth()Returns the value of thebuttonWidthrecord component.- Returns:
- the value of the
buttonWidthrecord component
-