Package net.minecraft.client.gui.toasts
Class SystemToast
java.lang.Object
net.minecraft.client.gui.toasts.SystemToast
- All Implemented Interfaces:
IToast
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.toasts.IToast
IToast.Visibility
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private final SystemToast.Type
private long
private List<IReorderingProcessor>
private ITextComponent
private final int
-
Constructor Summary
ModifierConstructorDescriptionprivate
SystemToast
(SystemToast.Type p_i232264_1_, ITextComponent p_i232264_2_, List<IReorderingProcessor> p_i232264_3_, int p_i232264_4_) SystemToast
(SystemToast.Type p_i47488_1_, ITextComponent p_i47488_2_, ITextComponent p_i47488_3_) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
add
(ToastGui p_238536_0_, SystemToast.Type p_238536_1_, ITextComponent p_238536_2_, ITextComponent p_238536_3_) static void
addOrUpdate
(ToastGui p_193657_0_, SystemToast.Type p_193657_1_, ITextComponent p_193657_2_, ITextComponent p_193657_3_) getToken()
static SystemToast
multiline
(Minecraft p_238534_0_, SystemToast.Type p_238534_1_, ITextComponent p_238534_2_, ITextComponent p_238534_3_) private static com.google.common.collect.ImmutableList<IReorderingProcessor>
nullToEmpty
(ITextComponent p_238537_0_) static void
onPackCopyFailure
(Minecraft p_238539_0_, String p_238539_1_) static void
onWorldAccessFailure
(Minecraft p_238535_0_, String p_238535_1_) static void
onWorldDeleteFailure
(Minecraft p_238538_0_, String p_238538_1_) render
(MatrixStack p_230444_1_, ToastGui p_230444_2_, long p_230444_3_) private void
renderBackgroundRow
(MatrixStack p_238533_1_, ToastGui p_238533_2_, int p_238533_3_, int p_238533_4_, int p_238533_5_, int p_238533_6_) void
reset
(ITextComponent p_193656_1_, ITextComponent p_193656_2_) int
width()
-
Field Details
-
id
-
title
-
messageLines
-
lastChanged
private long lastChanged -
changed
private boolean changed -
width
private final int width
-
-
Constructor Details
-
SystemToast
public SystemToast(SystemToast.Type p_i47488_1_, ITextComponent p_i47488_2_, @Nullable ITextComponent p_i47488_3_) -
SystemToast
private SystemToast(SystemToast.Type p_i232264_1_, ITextComponent p_i232264_2_, List<IReorderingProcessor> p_i232264_3_, int p_i232264_4_)
-
-
Method Details
-
multiline
public static SystemToast multiline(Minecraft p_238534_0_, SystemToast.Type p_238534_1_, ITextComponent p_238534_2_, ITextComponent p_238534_3_) -
nullToEmpty
private static com.google.common.collect.ImmutableList<IReorderingProcessor> nullToEmpty(@Nullable ITextComponent p_238537_0_) -
width
public int width() -
render
-
renderBackgroundRow
private void renderBackgroundRow(MatrixStack p_238533_1_, ToastGui p_238533_2_, int p_238533_3_, int p_238533_4_, int p_238533_5_, int p_238533_6_) -
reset
-
getToken
-
add
public static void add(ToastGui p_238536_0_, SystemToast.Type p_238536_1_, ITextComponent p_238536_2_, @Nullable ITextComponent p_238536_3_) -
addOrUpdate
public static void addOrUpdate(ToastGui p_193657_0_, SystemToast.Type p_193657_1_, ITextComponent p_193657_2_, @Nullable ITextComponent p_193657_3_) -
onWorldAccessFailure
-
onWorldDeleteFailure
-
onPackCopyFailure
-