Class NotificationManager
java.lang.Object
com.petarmc.lib.notification.NotificationManager
Utility class for showing in-game notifications to the player through the action bar.
Only works on the client side.
This class no longer relies on a global log prefix. Callers must supply a prefix
when showing notifications (e.g. "[MyMod]").
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidshowCustomNotification(String message) Shows a custom notification in chat.static voidShows an error notification in chat.static voidShows an info notification in chat.private static voidshowNotification(String msg)
-
Constructor Details
-
NotificationManager
public NotificationManager()
-
-
Method Details
-
showNotification
-
showError
-
showInfo
-
showCustomNotification
Shows a custom notification in chat.- Parameters:
message- the message to show (supports color codes like "§a")
-