Class ToastNotification
java.lang.Object
eu.endercentral.crazy_advancements.advancement.ToastNotification
Represents a Toast Notification
- Author:
- Axel
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Criteria
static final NameKey
static final AdvancementProgress
-
Constructor Summary
ConstructorDescriptionToastNotification
(ItemStack icon, JSONMessage message, AdvancementDisplay.AdvancementFrame frame) Constructor for creating Toast NotificationsToastNotification
(ItemStack icon, String message, AdvancementDisplay.AdvancementFrame frame) Constructor for creating Toast NotificationsToastNotification
(Material icon, JSONMessage message, AdvancementDisplay.AdvancementFrame frame) Constructor for creating Toast NotificationsToastNotification
(Material icon, String message, AdvancementDisplay.AdvancementFrame frame) Constructor for creating Toast Notifications -
Method Summary
-
Field Details
-
NOTIFICATION_NAME
-
NOTIFICATION_CRITERIA
-
NOTIFICATION_PROGRESS
-
-
Constructor Details
-
ToastNotification
public ToastNotification(ItemStack icon, JSONMessage message, AdvancementDisplay.AdvancementFrame frame) Constructor for creating Toast Notifications- Parameters:
icon
- The displayed Iconmessage
- The displayed Messageframe
- Determines the displayed Title and Sound Effect (evaluated client-side and modifiable via resource packs)
-
ToastNotification
Constructor for creating Toast Notifications- Parameters:
icon
- The displayed Iconmessage
- The displayed Messageframe
- Determines the displayed Title and Sound Effect (evaluated client-side and modifiable via resource packs)
-
ToastNotification
public ToastNotification(Material icon, JSONMessage message, AdvancementDisplay.AdvancementFrame frame) Constructor for creating Toast Notifications- Parameters:
icon
- The displayed Iconmessage
- The displayed Messageframe
- Determines the displayed Title and Sound Effect (evaluated client-side and modifiable via resource packs)
-
ToastNotification
Constructor for creating Toast Notifications- Parameters:
icon
- The displayed Iconmessage
- The displayed Messageframe
- Determines the displayed Title and Sound Effect (evaluated client-side and modifiable via resource packs)
-
-
Method Details
-
getIcon
Gets the Icon- Returns:
- The Icon
-
getMessage
Gets the TItle- Returns:
- The Title
-
getFrame
Gets the Frame- Returns:
- The Frame
-
send
Sends this Toast Notification to a Player- Parameters:
player
- The target Player
-