Modifier and Type | Class and Description |
---|---|
static class |
SystemToast.Type |
Toast.Visibility
Modifier and Type | Field and Description |
---|---|
private boolean |
justUpdated |
private List<OrderedText> |
lines |
private long |
startTime |
private Text |
title |
private SystemToast.Type |
type |
private int |
width |
Modifier | Constructor and Description |
---|---|
private |
SystemToast(SystemToast.Type type,
Text title,
List<OrderedText> lines,
int width) |
|
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 |
addPackCopyFailure(MinecraftClient client,
String directory) |
static void |
addWorldAccessFailureToast(MinecraftClient client,
String worldName) |
static void |
addWorldDeleteFailureToast(MinecraftClient client,
String worldName) |
static SystemToast |
create(MinecraftClient client,
SystemToast.Type type,
Text title,
Text description) |
Toast.Visibility |
draw(MatrixStack matrices,
ToastManager manager,
long startTime) |
private void |
drawPart(MatrixStack matrices,
ToastManager manager,
int width,
int textureV,
int y,
int height) |
private static ImmutableList<OrderedText> |
getTextAsList(Text text) |
SystemToast.Type |
getType() |
int |
getWidth() |
void |
setContent(Text title,
Text description) |
static void |
show(ToastManager manager,
SystemToast.Type type,
Text title,
Text description) |
private final SystemToast.Type type
private Text title
private List<OrderedText> lines
private long startTime
private boolean justUpdated
private final int width
public SystemToast(SystemToast.Type type, Text title, @Nullable Text description)
private SystemToast(SystemToast.Type type, Text title, List<OrderedText> lines, int width)
public static SystemToast create(MinecraftClient client, SystemToast.Type type, Text title, Text description)
private static ImmutableList<OrderedText> getTextAsList(@Nullable Text text)
public Toast.Visibility draw(MatrixStack matrices, ToastManager manager, long startTime)
private void drawPart(MatrixStack matrices, ToastManager manager, int width, int textureV, int y, int height)
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)
public static void addPackCopyFailure(MinecraftClient client, String directory)