Toasts
The Toast API leverages Minecraft's advancement packet system to display transient pop-up messages in the top-right corner of the player's screen.
Creating and Sending a Toast
To create a toast notification, use Toast.builder(). You can configure the title, subtitle, icon, and the border frame style. Once built, simply call send(Player).
[IMG?]
Builder Configuration Methods
The Toast.Builder provides a simple fluent interface for configuring the notification's appearance.
Method | Description |
|---|---|
| (Required) Sets the primary header text displayed in the toast. |
| (Optional) Sets the sub-header text displayed underneath the main title. If omitted, the toast will only display one line. |
| (Required) Sets the item stack used as the visual icon on the left side of the notification. |
| Sets the border frame style used for the notification. This dictates the background color and border shape (e.g., |
| Finalizes the configuration and produces the |