Modifier and Type | Class and Description |
---|---|
static class |
SystemToast.Type |
IToast.Visibility
Modifier and Type | Field and Description |
---|---|
private long |
firstDrawTime |
private boolean |
newDisplay |
private java.lang.String |
subtitle |
private java.lang.String |
title |
private SystemToast.Type |
type |
NO_TOKEN, TEXTURE_TOASTS
Constructor and Description |
---|
SystemToast(SystemToast.Type typeIn,
ITextComponent titleComponent,
ITextComponent subtitleComponent) |
Modifier and Type | Method and Description |
---|---|
static void |
addOrUpdate(GuiToast p_193657_0_,
SystemToast.Type p_193657_1_,
ITextComponent p_193657_2_,
ITextComponent p_193657_3_) |
IToast.Visibility |
draw(GuiToast toastGui,
long delta) |
SystemToast.Type |
getType() |
void |
setDisplayedText(ITextComponent titleComponent,
ITextComponent subtitleComponent) |
private final SystemToast.Type type
private java.lang.String title
private java.lang.String subtitle
private long firstDrawTime
private boolean newDisplay
public SystemToast(SystemToast.Type typeIn, ITextComponent titleComponent, @Nullable ITextComponent subtitleComponent)
public IToast.Visibility draw(GuiToast toastGui, long delta)
public void setDisplayedText(ITextComponent titleComponent, @Nullable ITextComponent subtitleComponent)
public SystemToast.Type getType()
public static void addOrUpdate(GuiToast p_193657_0_, SystemToast.Type p_193657_1_, ITextComponent p_193657_2_, @Nullable ITextComponent p_193657_3_)