@Environment(value=CLIENT) public class ToastManager extends DrawableHelper
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
ToastManager.Entry<T extends Toast> |
| Modifier and Type | Field and Description |
|---|---|
private MinecraftClient |
client |
private Deque<Toast> |
toastQueue |
private ToastManager.Entry<?>[] |
visibleEntries |
BACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
ToastManager(MinecraftClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Toast toast) |
void |
clear() |
void |
draw() |
MinecraftClient |
getGame() |
<T extends Toast> |
getToast(Class<? extends T> toastClass,
Object type) |
drawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffsetprivate final MinecraftClient client
private final ToastManager.Entry<?>[] visibleEntries
public ToastManager(MinecraftClient client)