@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 |
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
ToastManager(MinecraftClient client) |
Modifier and Type | Method and Description |
---|---|
void |
add(Toast toast) |
void |
clear() |
void |
draw(MatrixStack matrices) |
MinecraftClient |
getGame() |
<T extends Toast> |
getToast(Class<? extends T> toastClass,
Object type) |
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
private final MinecraftClient client
private final ToastManager.Entry<?>[] visibleEntries
public ToastManager(MinecraftClient client)
public void draw(MatrixStack matrices)
public void clear()
public void add(Toast toast)
public MinecraftClient getGame()