Class NotificationCenter
java.lang.Object
net.minestom.server.advancements.notifications.NotificationCenter
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 TypeMethodDescriptionstatic voidsend(@NotNull Notification notification, @NotNull Collection<Player> players) Send aNotificationto a collection of players.static voidsend(@NotNull Notification notification, @NotNull Player player) Send aNotificationto one player.
-
Method Details
-
send
public static void send(@NotNull @NotNull Notification notification, @NotNull @NotNull Player player) Send aNotificationto one player.- Parameters:
notification- theNotificationto sendplayer- the player to send the notification to
-
send
public static void send(@NotNull @NotNull Notification notification, @NotNull @NotNull Collection<Player> players) Send aNotificationto a collection of players.- Parameters:
notification- theNotificationto sendplayers- the collection of players to send the notification to
-