Class NotificationCenter

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

public class NotificationCenter
extends java.lang.Object
Used to send one or multiples Notification.

Works by sending a completed advancement and remove it immediately.

You can simply create a Notification object and call send(Notification, Player).

  • Method Summary

    Modifier and Type Method Description
    static void send​(Notification notification, java.util.Collection<Player> players)
    Send a Notification to a collection of players.
    static void send​(Notification notification, Player player)
    Send a Notification to one player.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • send

      public static void send​(Notification notification, Player player)
      Send a Notification to one player.
      Parameters:
      notification - the Notification to send
      player - the player to send the notification to
    • send

      public static void send​(Notification notification, java.util.Collection<Player> players)
      Send a Notification to a collection of players.
      Parameters:
      notification - the Notification to send
      players - the collection of players to send the notification to