public class GuiToast extends Gui
Modifier and Type | Class and Description |
---|---|
(package private) class |
GuiToast.ToastInstance<T extends IToast> |
Modifier and Type | Field and Description |
---|---|
private Minecraft |
mc |
private java.util.Deque<IToast> |
toastsQueue |
private GuiToast.ToastInstance<?>[] |
visible |
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Modifier and Type | Method and Description |
---|---|
void |
add(IToast toastIn) |
void |
clear() |
void |
drawToast(ScaledResolution resolution) |
Minecraft |
getMinecraft() |
<T extends IToast> |
getToast(java.lang.Class<? extends T> p_192990_1_,
java.lang.Object p_192990_2_) |
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private final Minecraft mc
private final GuiToast.ToastInstance<?>[] visible
private final java.util.Deque<IToast> toastsQueue
public GuiToast(Minecraft mcIn)
public void drawToast(ScaledResolution resolution)
@Nullable public <T extends IToast> T getToast(java.lang.Class<? extends T> p_192990_1_, java.lang.Object p_192990_2_)
public void clear()
public void add(IToast toastIn)
public Minecraft getMinecraft()