Modifier and Type | Class and Description |
---|---|
static class |
TutorialToast.Icons |
IToast.Visibility
Modifier and Type | Field and Description |
---|---|
private float |
currentProgress |
private float |
displayedProgress |
private boolean |
hasProgressBar |
private TutorialToast.Icons |
icon |
private long |
lastDelta |
private java.lang.String |
subtitle |
private java.lang.String |
title |
private IToast.Visibility |
visibility |
NO_TOKEN, TEXTURE_TOASTS
Constructor and Description |
---|
TutorialToast(TutorialToast.Icons iconIn,
ITextComponent titleComponent,
ITextComponent subtitleComponent,
boolean drawProgressBar) |
Modifier and Type | Method and Description |
---|---|
IToast.Visibility |
draw(ToastGui toastGui,
long delta) |
void |
hide() |
void |
setProgress(float progress) |
private final TutorialToast.Icons icon
private final java.lang.String title
private final java.lang.String subtitle
private IToast.Visibility visibility
private long lastDelta
private float displayedProgress
private float currentProgress
private final boolean hasProgressBar
public TutorialToast(TutorialToast.Icons iconIn, ITextComponent titleComponent, @Nullable ITextComponent subtitleComponent, boolean drawProgressBar)
public IToast.Visibility draw(ToastGui toastGui, long delta)
public void hide()
public void setProgress(float progress)