Class SystemToast
java.lang.Object
net.minecraft.client.gui.components.toasts.SystemToast
- All Implemented Interfaces:
Toast
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.components.toasts.Toast
Toast.Visibility
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private static final long
private final SystemToast.SystemToastIds
private long
private static final int
private List<FormattedCharSequence>
private Component
private final int
-
Constructor Summary
ModifierConstructorDescriptionprivate
SystemToast
(SystemToast.SystemToastIds p_94827_, Component p_94828_, List<FormattedCharSequence> p_94829_, int p_94830_) SystemToast
(SystemToast.SystemToastIds p_94832_, Component p_94833_, Component p_94834_) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
add
(ToastComponent p_94856_, SystemToast.SystemToastIds p_94857_, Component p_94858_, Component p_94859_) static void
addOrUpdate
(ToastComponent p_94870_, SystemToast.SystemToastIds p_94871_, Component p_94872_, Component p_94873_) getToken()
static SystemToast
multiline
(Minecraft p_94848_, SystemToast.SystemToastIds p_94849_, Component p_94850_, Component p_94851_) private static com.google.common.collect.ImmutableList<FormattedCharSequence>
nullToEmpty
(Component p_94861_) static void
onPackCopyFailure
(Minecraft p_94876_, String p_94877_) static void
onWorldAccessFailure
(Minecraft p_94853_, String p_94854_) static void
onWorldDeleteFailure
(Minecraft p_94867_, String p_94868_) render
(PoseStack p_94844_, ToastComponent p_94845_, long p_94846_) private void
renderBackgroundRow
(PoseStack p_94837_, ToastComponent p_94838_, int p_94839_, int p_94840_, int p_94841_, int p_94842_) void
int
width()
-
Field Details
-
DISPLAY_TIME
private static final long DISPLAY_TIME- See Also:
-
MAX_LINE_SIZE
private static final int MAX_LINE_SIZE- See Also:
-
id
-
title
-
messageLines
-
lastChanged
private long lastChanged -
changed
private boolean changed -
width
private final int width
-
-
Constructor Details
-
SystemToast
public SystemToast(SystemToast.SystemToastIds p_94832_, Component p_94833_, @Nullable Component p_94834_) -
SystemToast
private SystemToast(SystemToast.SystemToastIds p_94827_, Component p_94828_, List<FormattedCharSequence> p_94829_, int p_94830_)
-
-
Method Details
-
multiline
public static SystemToast multiline(Minecraft p_94848_, SystemToast.SystemToastIds p_94849_, Component p_94850_, Component p_94851_) -
nullToEmpty
private static com.google.common.collect.ImmutableList<FormattedCharSequence> nullToEmpty(@Nullable Component p_94861_) -
width
public int width() -
render
-
renderBackgroundRow
private void renderBackgroundRow(PoseStack p_94837_, ToastComponent p_94838_, int p_94839_, int p_94840_, int p_94841_, int p_94842_) -
reset
-
getToken
-
add
public static void add(ToastComponent p_94856_, SystemToast.SystemToastIds p_94857_, Component p_94858_, @Nullable Component p_94859_) -
addOrUpdate
public static void addOrUpdate(ToastComponent p_94870_, SystemToast.SystemToastIds p_94871_, Component p_94872_, @Nullable Component p_94873_) -
onWorldAccessFailure
-
onWorldDeleteFailure
-
onPackCopyFailure
-