| Modifier and Type | Class and Description |
|---|---|
static class |
SystemToast.Type |
Toast.Visibility| Modifier and Type | Field and Description |
|---|---|
private String |
description |
private boolean |
justUpdated |
private long |
startTime |
private String |
title |
private SystemToast.Type |
type |
TOASTS_TEX, TYPE| Constructor and Description |
|---|
SystemToast(SystemToast.Type type,
Text title,
Text description) |
| Modifier and Type | Method and Description |
|---|---|
static void |
add(ToastManager manager,
SystemToast.Type type,
Text title,
Text description) |
static void |
addWorldAccessFailureToast(MinecraftClient client,
String worldName) |
static void |
addWorldDeleteFailureToast(MinecraftClient client,
String worldName) |
Toast.Visibility |
draw(MatrixStack matrices,
ToastManager manager,
long startTime) |
SystemToast.Type |
getType() |
void |
setContent(Text title,
Text description) |
static void |
show(ToastManager manager,
SystemToast.Type type,
Text title,
Text description) |
private final SystemToast.Type type
private String title
private String description
private long startTime
private boolean justUpdated
public SystemToast(SystemToast.Type type, Text title, @Nullable Text description)
public Toast.Visibility draw(MatrixStack matrices, ToastManager manager, long startTime)
public SystemToast.Type getType()
public static void add(ToastManager manager, SystemToast.Type type, Text title, @Nullable Text description)
public static void show(ToastManager manager, SystemToast.Type type, Text title, @Nullable Text description)
public static void addWorldAccessFailureToast(MinecraftClient client, String worldName)
public static void addWorldDeleteFailureToast(MinecraftClient client, String worldName)