Package net.minestom.server.dialog
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(@NotNull DialogMetadata metadata, @NotNull DialogActionButton action)
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
FieldsModifier and TypeFieldDescriptionstatic final @NotNull StructCodec
<Dialog.Notice> static final DialogActionButton
Fields inherited from interface net.minestom.server.dialog.Dialog
NETWORK_TYPE, REGISTRY, REGISTRY_CODEC, REGISTRY_NETWORK_TYPE
-
Constructor Summary
ConstructorsConstructorDescriptionNotice
(@NotNull DialogMetadata metadata, @NotNull DialogActionButton action) Creates an instance of aNotice
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull DialogActionButton
action()
Returns the value of theaction
record component.@NotNull StructCodec
<? extends Dialog> codec()
final boolean
Indicates whether some other object is "equal to" this one.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
-
DEFAULT_ACTION
-
CODEC
-
-
Constructor Details
-
Notice
public Notice(@NotNull @NotNull DialogMetadata metadata, @NotNull @NotNull DialogActionButton action) Creates an instance of aNotice
record class.- Parameters:
metadata
- the value for themetadata
record componentaction
- the value for theaction
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
metadata
Returns the value of themetadata
record component. -
action
Returns the value of theaction
record component.- Returns:
- the value of the
action
record component
-