Record Class Dialog.Notice
java.lang.Object
java.lang.Record
net.minestom.server.dialog.Dialog.Notice
- All Implemented Interfaces:
DialogLike, Dialog, Holder<Dialog>, Holder.Direct<Dialog>
- Enclosing interface:
Dialog
public static record Dialog.Notice(DialogMetadata metadata, DialogActionButton action)
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
FieldsModifier and TypeFieldDescriptionstatic final StructCodec<Dialog.Notice> static final DialogActionButtonFields inherited from interface Dialog
NETWORK_TYPE, REGISTRY, REGISTRY_CODEC, REGISTRY_NETWORK_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionNotice(DialogMetadata metadata, DialogActionButton action) Creates an instance of aNoticerecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.StructCodec<? extends Dialog> codec()final booleanIndicates whether some other object is "equal to" this one.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
-
DEFAULT_ACTION
-
CODEC
-
-
Constructor Details
-
Notice
Creates an instance of aNoticerecord class.- Parameters:
metadata- the value for themetadatarecord componentaction- the value for theactionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
metadata
Returns the value of themetadatarecord component. -
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-