Class NotificationCenter
java.lang.Object
net.minestom.server.advancements.notifications.NotificationCenter
Deprecated, for removal: This API element is subject to removal in a future version.
- Since:
- 1.0.0
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 callsend(Notification, Player)
.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
send
(@NotNull Notification notification, @NotNull Collection<Player> players) Deprecated, for removal: This API element is subject to removal in a future version.Send aNotification
to a collection of players.static void
send
(@NotNull Notification notification, @NotNull Player player) Deprecated, for removal: This API element is subject to removal in a future version.Send aNotification
to one player.
-
Method Details
-
send
public static void send(@NotNull @NotNull Notification notification, @NotNull @NotNull Player player) Deprecated, for removal: This API element is subject to removal in a future version.Send aNotification
to one player.- Parameters:
notification
- theNotification
to sendplayer
- the player to send the notification to
-
send
public static void send(@NotNull @NotNull Notification notification, @NotNull @NotNull Collection<Player> players) Deprecated, for removal: This API element is subject to removal in a future version.Send aNotification
to a collection of players.- Parameters:
notification
- theNotification
to sendplayers
- the collection of players to send the notification to
-
Notification.builder()
instead.