Record Class Notification
java.lang.Object
java.lang.Record
net.minestom.server.advancements.notifications.Notification
@Deprecated(since="1.4.1",
forRemoval=true)
public record Notification(@NotNull Component title, @NotNull FrameType frameType, @NotNull ItemStack icon)
extends Record
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a message which can be sent using the
NotificationCenter.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionNotification(@NotNull Component title, @NotNull FrameType frameType, @NotNull ItemStack icon) Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance of aNotificationrecord class.Notification(@NotNull Component title, @NotNull FrameType frameType, @NotNull Material icon) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanDeprecated, for removal: This API element is subject to removal in a future version.Indicates whether some other object is "equal to" this one.@NotNull FrameTypeDeprecated, for removal: This API element is subject to removal in a future version.Returns the value of theframeTyperecord component.final inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.Returns a hash code value for this object.@NotNull ItemStackicon()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theiconrecord component.@NotNull Componenttitle()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thetitlerecord component.final StringtoString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of this record class.
-
Constructor Details
-
Notification
public Notification(@NotNull @NotNull Component title, @NotNull @NotNull FrameType frameType, @NotNull @NotNull Material icon) Deprecated, for removal: This API element is subject to removal in a future version. -
Notification
public Notification(@NotNull @NotNull Component title, @NotNull @NotNull FrameType frameType, @NotNull @NotNull ItemStack icon) Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance of aNotificationrecord class.- Parameters:
title- the value for thetitlerecord componentframeType- the value for theframeTyperecord componenticon- the value for theiconrecord component
-
-
Method Details
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.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()Deprecated, for removal: This API element is subject to removal in a future version.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated, for removal: This API element is subject to removal in a future version.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). -
title
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
frameType
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theframeTyperecord component.- Returns:
- the value of the
frameTyperecord component
-
icon
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
Notification.builder()instead.