Class NotificationCenter

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

@Deprecated(since="1.4.1", forRemoval=true) public final class NotificationCenter extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
As of Minestom 22a8ccabfae38c53df0605000aa7eed49765c1ab, because the Maintainability is very hard and can break everytime from Mojang side because bad api design use Notification.builder() instead.
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 call send(Notification, 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 a Notification to one player.
      Parameters:
      notification - the Notification to send
      player - 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 a Notification to a collection of players.
      Parameters:
      notification - the Notification to send
      players - the collection of players to send the notification to