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 List<StringRenderable>field_25037private intfield_25038private booleanjustUpdatedprivate longstartTimeprivate StringRenderabletitleprivate SystemToast.Typetype -
Constructor Summary
Constructors Modifier Constructor Description privateSystemToast(SystemToast.Type type, Text text, List<StringRenderable> list, int int2)SystemToast(SystemToast.Type type, Text text, Text text2) -
Method Summary
Modifier and Type Method Description static voidadd(ToastManager manager, SystemToast.Type type, Text title, Text description)static voidaddWorldAccessFailureToast(MinecraftClient client, String worldName)static voidaddWorldDeleteFailureToast(MinecraftClient client, String worldName)Toast.Visibilitydraw(MatrixStack matrices, ToastManager manager, long startTime)SystemToast.TypegetType()private voidmethod_29046(MatrixStack matrixStack, ToastManager toastManager, int int2, int int3, int int4, int int5)static SystemToastmethod_29047(MinecraftClient minecraftClient, SystemToast.Type type, Text text, Text text2)intmethod_29049()private static ImmutableList<StringRenderable>method_29626(Text text)static voidmethod_29627(MinecraftClient minecraftClient, String string)voidsetContent(Text title, Text description)static voidshow(ToastManager manager, SystemToast.Type type, Text title, Text description)
-
Field Details
-
type
-
title
-
field_25037
-
startTime
private long startTime -
justUpdated
private boolean justUpdated -
field_25038
private final int field_25038
-
-
Constructor Details
-
Method Details
-
method_29047
public static SystemToast method_29047(MinecraftClient minecraftClient, SystemToast.Type type, Text text, Text text2) -
method_29626
-
method_29049
public int method_29049()- Specified by:
method_29049in interfaceToast
-
draw
-
method_29046
private void method_29046(MatrixStack matrixStack, ToastManager toastManager, int int2, int int3, int int4, int int5) -
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
-
method_29627
-