java.lang.Object
net.minestom.server.advancements.notifications.Notification

public class Notification extends Object
Represents a message which can be send using the NotificationCenter.
  • Constructor Details

    • Notification

      public Notification(@NotNull @NotNull Component title, @NotNull @NotNull FrameType frameType, @NotNull @NotNull ItemStack icon)
    • Notification

      public Notification(@NotNull @NotNull Component title, @NotNull @NotNull FrameType frameType, @NotNull @NotNull Material icon)
  • Method Details

    • getTitle

      public Component getTitle()
      Gets the title of the notification.
      Returns:
      the notification title
    • getFrameType

      @NotNull public @NotNull FrameType getFrameType()
      Gets the FrameType of the notification.
      Returns:
      the notification frame type
    • getIcon

      @NotNull protected @NotNull ItemStack getIcon()
      Gets the icon of the notification.
      Returns:
      the notification icon