Record Class Notification
java.lang.Object
java.lang.Record
net.minestom.server.advancements.Notification
Represents a toast which can be sent to the player using
Player.sendNotification(Notification).-
Constructor Summary
ConstructorsConstructorDescriptionNotification(Component title, FrameType frameType, ItemStack icon) Creates an instance of aNotificationrecord class.Notification(Component title, FrameType frameType, Material icon) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theframeTyperecord component.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Notification
-
Notification
-
-
Method Details
-
buildAddPacket
-
buildRemovePacket
-
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). -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
frameType
Returns the value of theframeTyperecord component.- Returns:
- the value of the
frameTyperecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-