Class NotificationUtil

java.lang.Object
com.hypixel.hytale.server.core.util.NotificationUtil

public class NotificationUtil extends Object
A utility class that contains a variety of useful notification methods.
  • Constructor Details

    • NotificationUtil

      public NotificationUtil()
  • Method Details

    • sendNotificationToUniverse

      public static void sendNotificationToUniverse(@Nonnull Message message, @Nullable Message secondaryMessage, @Nullable String icon, @Nullable ItemWithAllMetadata item, @Nonnull NotificationStyle style)
      Sends a notification to all worlds in the universe.
      Parameters:
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
      icon - The icon of the notification.
      item - The item of the notification.
      style - The style of the notification.
    • sendNotificationToUniverse

      public static void sendNotificationToUniverse(@Nonnull String message)
      Sends a notification to all worlds in the universe.
      Parameters:
      message - The primary message of the notification.
    • sendNotificationToUniverse

      public static void sendNotificationToUniverse(@Nonnull String message, @Nonnull String secondaryMessage)
      Sends a notification to all worlds in the universe.
      Parameters:
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
    • sendNotificationToUniverse

      public static void sendNotificationToUniverse(@Nonnull String message, @Nonnull NotificationStyle style)
      Sends a notification to all worlds in the universe.
      Parameters:
      message - The primary message of the notification.
      style - The style of the notification.
    • sendNotificationToUniverse

      public static void sendNotificationToUniverse(@Nonnull Message message)
      Sends a notification to all worlds in the universe.
      Parameters:
      message - The primary message of the notification.
    • sendNotificationToUniverse

      public static void sendNotificationToUniverse(@Nonnull Message message, @Nonnull NotificationStyle style)
      Sends a notification to all worlds in the universe.
      Parameters:
      message - The primary message of the notification.
      style - The style of the notification.
    • sendNotificationToUniverse

      public static void sendNotificationToUniverse(@Nonnull Message message, @Nullable String icon, @Nonnull NotificationStyle style)
      Sends a notification to all worlds in the universe.
      Parameters:
      message - The primary message of the notification.
      icon - The icon of the notification.
      style - The style of the notification.
    • sendNotificationToUniverse

      public static void sendNotificationToUniverse(@Nonnull Message message, @Nullable ItemWithAllMetadata item, @Nonnull NotificationStyle style)
      Sends a notification to all worlds in the universe.
      Parameters:
      message - The primary message of the notification.
      item - The item of the notification.
      style - The style of the notification.
    • sendNotificationToUniverse

      public static void sendNotificationToUniverse(@Nonnull Message message, @Nullable Message secondaryMessage, @Nullable String icon)
      Sends a notification to all worlds in the universe.
      Parameters:
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
      icon - The icon of the notification.
    • sendNotificationToUniverse

      public static void sendNotificationToUniverse(@Nonnull Message message, @Nullable Message secondaryMessage, @Nullable ItemWithAllMetadata item)
      Sends a notification to all worlds in the universe.
      Parameters:
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
      item - The item of the notification.
    • sendNotificationToUniverse

      public static void sendNotificationToUniverse(@Nonnull Message message, @Nullable Message secondaryMessage, @Nonnull NotificationStyle style)
      Sends a notification to all worlds in the universe.
      Parameters:
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
      style - The style of the notification.
    • sendNotificationToUniverse

      public static void sendNotificationToUniverse(@Nonnull Message message, @Nullable Message secondaryMessage, @Nullable String icon, @Nonnull NotificationStyle style)
      Sends a notification to all worlds in the universe.
      Parameters:
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
      icon - The icon of the notification.
      style - The style of the notification.
    • sendNotificationToUniverse

      public static void sendNotificationToUniverse(@Nonnull Message message, @Nullable Message secondaryMessage, @Nullable ItemWithAllMetadata item, @Nonnull NotificationStyle style)
      Sends a notification to all worlds in the universe.
      Parameters:
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
      item - The item of the notification.
      style - The style of the notification.
    • sendNotificationToWorld

      public static void sendNotificationToWorld(@Nonnull Message message, @Nullable Message secondaryMessage, @Nullable String icon, @Nullable ItemWithAllMetadata item, @Nonnull NotificationStyle style, @Nonnull Store<EntityStore> store)
      Sends a notification to all players in the world.
      Parameters:
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
      icon - The icon of the notification.
      item - The item of the notification.
      style - The style of the notification.
      store - The Store<EntityStore> for component access.
    • sendNotification

      public static void sendNotification(@Nonnull PacketHandler handler, @Nonnull Message message, @Nullable Message secondaryMessage, @Nullable String icon, @Nullable ItemWithAllMetadata item, @Nonnull NotificationStyle style)
      Called to send a notification to the given packet handler of a player.
      Parameters:
      handler - The packet handler to send the notification to.
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
      icon - The icon of the notification.
      item - The item of the notification.
      style - The style of the notification.
    • sendNotification

      public static void sendNotification(@Nonnull PacketHandler handler, @Nonnull Message message, @Nullable Message secondaryMessage, @Nullable String icon, @Nullable ItemWithAllMetadata item, @Nonnull NotificationStyle style, @Nullable String tag)
      Called to send a notification to the given packet handler of a player.
      Parameters:
      handler - The packet handler to send the notification to.
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
      icon - The icon of the notification.
      item - The item of the notification.
      style - The style of the notification.
      tag - The client merges a notification only into a toast with the same tag. An equivalent item stacks quantities. Any other same-tag match is replaced in place. Use a stable tag to drive in-place progress updates.
    • sendNotification

      public static void sendNotification(@Nonnull PacketHandler handler, @Nonnull String message)
      Called to send a notification to the given packet handler of a player.
      Parameters:
      handler - The packet handler to send the notification to.
      message - The primary message of the notification.
    • sendNotification

      public static void sendNotification(@Nonnull PacketHandler handler, @Nonnull Message message, @Nonnull String icon)
      Called to send a notification to the given packet handler of a player.
      Parameters:
      handler - The packet handler to send the notification to.
      message - The primary message of the notification.
      icon - The icon of the notification.
    • sendNotification

      public static void sendNotification(@Nonnull PacketHandler handler, @Nonnull Message message, @Nonnull String icon, @Nonnull NotificationStyle notificationStyle)
      Called to send a notification to the given packet handler of a player.
      Parameters:
      handler - The packet handler to send the notification to.
      message - The primary message of the notification.
      icon - The icon of the notification.
      notificationStyle - The style of the notification.
    • sendNotification

      public static void sendNotification(@Nonnull PacketHandler handler, @Nonnull String message, @Nonnull NotificationStyle style)
      Called to send a notification to the given packet handler of a player.
      Parameters:
      handler - The packet handler to send the notification to.
      message - The primary message of the notification.
      style - The style of the notification.
    • sendNotification

      public static void sendNotification(@Nonnull PacketHandler handler, @Nonnull Message message)
      Called to send a notification to the given packet handler of a player.
      Parameters:
      handler - The packet handler to send the notification to.
      message - The primary message of the notification.
    • sendNotification

      public static void sendNotification(@Nonnull PacketHandler handler, @Nonnull Message message, @Nonnull NotificationStyle style)
      Called to send a notification to the given packet handler of a player.
      Parameters:
      handler - The packet handler to send the notification to.
      message - The primary message of the notification.
      style - The style of the notification.
    • sendNotification

      public static void sendNotification(@Nonnull PacketHandler handler, @Nonnull String message, @Nonnull String secondaryMessage)
      Called to send a notification to the given packet handler of a player.
      Parameters:
      handler - The packet handler to send the notification to.
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
    • sendNotification

      public static void sendNotification(@Nonnull PacketHandler handler, @Nonnull Message message, @Nullable Message secondaryMessage, @Nullable String icon)
      Called to send a notification to the given packet handler of a player.
      Parameters:
      handler - The packet handler to send the notification to.
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
      icon - The icon of the notification.
    • sendNotification

      public static void sendNotification(@Nonnull PacketHandler handler, @Nonnull Message message, @Nonnull Message secondaryMessage)
      Called to send a notification to the given packet handler of a player.
      Parameters:
      handler - The packet handler to send the notification to.
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
    • sendNotification

      public static void sendNotification(@Nonnull PacketHandler handler, @Nonnull Message message, @Nullable Message secondaryMessage, @Nullable ItemWithAllMetadata item)
      Called to send a notification to the given packet handler of a player.
      Parameters:
      handler - The packet handler to send the notification to.
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
      item - The item of the notification.
    • sendNotification

      public static void sendNotification(@Nonnull PacketHandler handler, @Nonnull Message message, @Nullable Message secondaryMessage, @Nonnull NotificationStyle style)
      Called to send a notification to the given packet handler of a player.
      Parameters:
      handler - The packet handler to send the notification to.
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
      style - The style of the notification.
    • sendNotification

      public static void sendNotification(@Nonnull PacketHandler handler, @Nonnull Message message, @Nonnull Message secondaryMessage, @Nullable String icon, @Nonnull NotificationStyle style)
      Called to send a notification to the given packet handler of a player.
      Parameters:
      handler - The packet handler to send the notification to.
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
      icon - The icon of the notification.
      style - The style of the notification.
    • sendNotification

      public static void sendNotification(@Nonnull PacketHandler handler, @Nonnull Message message, @Nullable Message secondaryMessage, @Nullable ItemWithAllMetadata item, @Nonnull NotificationStyle style)
      Called to send a notification to the given packet handler of a player.
      Parameters:
      handler - The packet handler to send the notification to.
      message - The primary message of the notification.
      secondaryMessage - The secondary message of the notification.
      item - The item of the notification.
      style - The style of the notification.