Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- sendNotificationToUniverse(Message, Message, String, ItemWithAllMetadata, NotificationStyle)
- sendNotificationToUniverse(String)
- sendNotificationToUniverse(String, String)
- sendNotificationToUniverse(String, NotificationStyle)
- sendNotificationToUniverse(Message)
- sendNotificationToUniverse(Message, NotificationStyle)
- sendNotificationToUniverse(Message, String, NotificationStyle)
- sendNotificationToUniverse(Message, ItemWithAllMetadata, NotificationStyle)
- sendNotificationToUniverse(Message, Message, String)
- sendNotificationToUniverse(Message, Message, ItemWithAllMetadata)
- sendNotificationToUniverse(Message, Message, NotificationStyle)
- sendNotificationToUniverse(Message, Message, String, NotificationStyle)
- sendNotificationToUniverse(Message, Message, ItemWithAllMetadata, NotificationStyle)
- sendNotificationToWorld(Message, Message, String, ItemWithAllMetadata, NotificationStyle, Store)
- sendNotification(PacketHandler, Message, Message, String, ItemWithAllMetadata, NotificationStyle)
- sendNotification(PacketHandler, Message, Message, String, ItemWithAllMetadata, NotificationStyle, String)
- sendNotification(PacketHandler, String)
- sendNotification(PacketHandler, Message, String)
- sendNotification(PacketHandler, Message, String, NotificationStyle)
- sendNotification(PacketHandler, String, NotificationStyle)
- sendNotification(PacketHandler, Message)
- sendNotification(PacketHandler, Message, NotificationStyle)
- sendNotification(PacketHandler, String, String)
- sendNotification(PacketHandler, Message, Message, String)
- sendNotification(PacketHandler, Message, Message)
- sendNotification(PacketHandler, Message, Message, ItemWithAllMetadata)
- sendNotification(PacketHandler, Message, Message, NotificationStyle)
- sendNotification(PacketHandler, Message, Message, String, NotificationStyle)
- sendNotification(PacketHandler, Message, Message, ItemWithAllMetadata, NotificationStyle)
Class NotificationUtil
java.lang.Object
com.hypixel.hytale.server.core.util.NotificationUtil
A utility class that contains a variety of useful notification methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsendNotification(PacketHandler handler, Message message) Called to send a notification to the given packet handler of a player.static voidsendNotification(PacketHandler handler, Message message, NotificationStyle style) Called to send a notification to the given packet handler of a player.static voidsendNotification(PacketHandler handler, Message message, Message secondaryMessage) Called to send a notification to the given packet handler of a player.static voidsendNotification(PacketHandler handler, Message message, Message secondaryMessage, ItemWithAllMetadata item) Called to send a notification to the given packet handler of a player.static voidsendNotification(PacketHandler handler, Message message, Message secondaryMessage, ItemWithAllMetadata item, NotificationStyle style) Called to send a notification to the given packet handler of a player.static voidsendNotification(PacketHandler handler, Message message, Message secondaryMessage, NotificationStyle style) Called to send a notification to the given packet handler of a player.static voidsendNotification(PacketHandler handler, Message message, Message secondaryMessage, String icon) Called to send a notification to the given packet handler of a player.static voidsendNotification(PacketHandler handler, Message message, Message secondaryMessage, String icon, ItemWithAllMetadata item, NotificationStyle style) Called to send a notification to the given packet handler of a player.static voidsendNotification(PacketHandler handler, Message message, Message secondaryMessage, String icon, ItemWithAllMetadata item, NotificationStyle style, String tag) Called to send a notification to the given packet handler of a player.static voidsendNotification(PacketHandler handler, Message message, Message secondaryMessage, String icon, NotificationStyle style) Called to send a notification to the given packet handler of a player.static voidsendNotification(PacketHandler handler, Message message, String icon) Called to send a notification to the given packet handler of a player.static voidsendNotification(PacketHandler handler, Message message, String icon, NotificationStyle notificationStyle) Called to send a notification to the given packet handler of a player.static voidsendNotification(PacketHandler handler, String message) Called to send a notification to the given packet handler of a player.static voidsendNotification(PacketHandler handler, String message, NotificationStyle style) Called to send a notification to the given packet handler of a player.static voidsendNotification(PacketHandler handler, String message, String secondaryMessage) Called to send a notification to the given packet handler of a player.static voidsendNotificationToUniverse(Message message) Sends a notification to all worlds in the universe.static voidsendNotificationToUniverse(Message message, ItemWithAllMetadata item, NotificationStyle style) Sends a notification to all worlds in the universe.static voidsendNotificationToUniverse(Message message, NotificationStyle style) Sends a notification to all worlds in the universe.static voidsendNotificationToUniverse(Message message, Message secondaryMessage, ItemWithAllMetadata item) Sends a notification to all worlds in the universe.static voidsendNotificationToUniverse(Message message, Message secondaryMessage, ItemWithAllMetadata item, NotificationStyle style) Sends a notification to all worlds in the universe.static voidsendNotificationToUniverse(Message message, Message secondaryMessage, NotificationStyle style) Sends a notification to all worlds in the universe.static voidsendNotificationToUniverse(Message message, Message secondaryMessage, String icon) Sends a notification to all worlds in the universe.static voidsendNotificationToUniverse(Message message, Message secondaryMessage, String icon, ItemWithAllMetadata item, NotificationStyle style) Sends a notification to all worlds in the universe.static voidsendNotificationToUniverse(Message message, Message secondaryMessage, String icon, NotificationStyle style) Sends a notification to all worlds in the universe.static voidsendNotificationToUniverse(Message message, String icon, NotificationStyle style) Sends a notification to all worlds in the universe.static voidsendNotificationToUniverse(String message) Sends a notification to all worlds in the universe.static voidsendNotificationToUniverse(String message, NotificationStyle style) Sends a notification to all worlds in the universe.static voidsendNotificationToUniverse(String message, String secondaryMessage) Sends a notification to all worlds in the universe.static voidsendNotificationToWorld(Message message, Message secondaryMessage, String icon, ItemWithAllMetadata item, NotificationStyle style, Store<EntityStore> store) Sends a notification to all players in the world.
-
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
Sends a notification to all worlds in the universe.- Parameters:
message- The primary message of the notification.
-
sendNotificationToUniverse
-
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
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- TheStore<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
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
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.
-