Package net.minestom.server.dialog
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(@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.ServerLinks
Nested 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 aDialogList
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thebuttonWidth
record component.@NotNull StructCodec
<? extends Dialog> codec()
int
columns()
Returns the value of thecolumns
record component.dialogs()
Returns the value of thedialogs
record component.final boolean
Indicates whether some other object is "equal to" this one.@Nullable DialogActionButton
Returns the value of theexitAction
record component.final int
hashCode()
Returns a hash code value for this object.@NotNull DialogMetadata
metadata()
Returns the value of themetadata
record component.final String
toString()
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 aDialogList
record class.- Parameters:
metadata
- the value for themetadata
record componentdialogs
- the value for thedialogs
record componentexitAction
- the value for theexitAction
record componentcolumns
- the value for thecolumns
record componentbuttonWidth
- the value for thebuttonWidth
record 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 themetadata
record component. -
dialogs
Returns the value of thedialogs
record component.- Returns:
- the value of the
dialogs
record component
-
exitAction
Returns the value of theexitAction
record component.- Returns:
- the value of the
exitAction
record component
-
columns
public int columns()Returns the value of thecolumns
record component.- Returns:
- the value of the
columns
record component
-
buttonWidth
public int buttonWidth()Returns the value of thebuttonWidth
record component.- Returns:
- the value of the
buttonWidth
record component
-