minuit

ToastSpec

Shows a toast in the game's own stack, in the player's theme. A second toast with the same key replaces the first.

Java

Inside a PanelComponent constructor. The same call draws in every family and chroma.

Java
Toasts.show("mymod", ToastSpec.of("World saved", "Backup 3 of 5")
        .icon(ItemView.of("minecraft:diamond"))
        .key("backup"));

Stack

Two toasts with a long body, seen half way and at the end of the slide.

ToastSpec, stack: Two toasts with a long body, seen half way and at the end of the slide.