Package net.minecraft.client.toast
Class SystemToast
java.lang.Object
net.minecraft.client.toast.SystemToast
- All Implemented Interfaces:
Toast
@Environment(CLIENT) public class SystemToast extends Object implements Toast
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSystemToast.TypeNested classes/interfaces inherited from interface net.minecraft.client.toast.Toast
Toast.Visibility -
Field Summary
Fields Modifier and Type Field Description private booleanjustUpdatedprivate List<OrderedText>linesprivate longstartTimeprivate Texttitleprivate SystemToast.Typetypeprivate intwidth -
Constructor Summary
Constructors Modifier Constructor Description privateSystemToast(SystemToast.Type type, Text title, List<OrderedText> lines, int width)SystemToast(SystemToast.Type type, Text title, Text description) -
Method Summary
Modifier and Type Method Description static voidadd(ToastManager manager, SystemToast.Type type, Text title, Text description)static voidaddPackCopyFailure(MinecraftClient client, String directory)static voidaddWorldAccessFailureToast(MinecraftClient client, String worldName)static voidaddWorldDeleteFailureToast(MinecraftClient client, String worldName)static SystemToastcreate(MinecraftClient client, SystemToast.Type type, Text title, Text description)Toast.Visibilitydraw(MatrixStack matrices, ToastManager manager, long startTime)private voiddrawPart(MatrixStack matrices, ToastManager manager, int width, int textureV, int y, int height)private static ImmutableList<OrderedText>getTextAsList(Text text)SystemToast.TypegetType()intgetWidth()voidsetContent(Text title, Text description)static voidshow(ToastManager manager, SystemToast.Type type, Text title, Text description)
-
Field Details
-
type
-
title
-
lines
-
startTime
private long startTime -
justUpdated
private boolean justUpdated -
width
private final int width
-
-
Constructor Details
-
SystemToast
-
SystemToast
-
-
Method Details
-
create
public static SystemToast create(MinecraftClient client, SystemToast.Type type, Text title, Text description) -
getTextAsList
-
getWidth
public int getWidth() -
draw
-
drawPart
private void drawPart(MatrixStack matrices, ToastManager manager, int width, int textureV, int y, int height) -
setContent
-
getType
-
add
public static void add(ToastManager manager, SystemToast.Type type, Text title, @Nullable Text description) -
show
public static void show(ToastManager manager, SystemToast.Type type, Text title, @Nullable Text description) -
addWorldAccessFailureToast
-
addWorldDeleteFailureToast
-
addPackCopyFailure
-