Package net.minecraft.client.gui.toasts
Class ToastGui
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.toasts.ToastGui
-
public class ToastGui extends AbstractGui
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
ToastGui.ToastInstance<T extends IToast>
-
Field Summary
Fields Modifier and Type Field Description private Minecraft
minecraft
private java.util.Deque<IToast>
queued
private ToastGui.ToastInstance<?>[]
visible
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToast(IToast p_192988_1_)
void
clear()
Minecraft
getMinecraft()
<T extends IToast>
TgetToast(java.lang.Class<? extends T> p_192990_1_, java.lang.Object p_192990_2_)
void
render(MatrixStack p_238541_1_)
-
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
-
-
-
Field Detail
-
minecraft
private final Minecraft minecraft
-
visible
private final ToastGui.ToastInstance<?>[] visible
-
queued
private final java.util.Deque<IToast> queued
-
-
Constructor Detail
-
ToastGui
public ToastGui(Minecraft p_i47388_1_)
-
-
Method Detail
-
render
public void render(MatrixStack p_238541_1_)
-
getToast
@Nullable public <T extends IToast> T getToast(java.lang.Class<? extends T> p_192990_1_, java.lang.Object p_192990_2_)
-
clear
public void clear()
-
addToast
public void addToast(IToast p_192988_1_)
-
getMinecraft
public Minecraft getMinecraft()
-
-