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 static final ResourceLocation
private boolean
private boolean
private final SystemToast.SystemToastId
private long
private static final int
private static final int
private static final int
private List
<FormattedCharSequence> private Component
private final int
Fields inherited from interface net.minecraft.client.gui.components.toasts.Toast
NO_TOKEN, SLOT_HEIGHT
-
Constructor Summary
ModifierConstructorDescriptionprivate
SystemToast
(SystemToast.SystemToastId p_314467_, Component p_94828_, List<FormattedCharSequence> p_94829_, int p_94830_) SystemToast
(SystemToast.SystemToastId p_314596_, Component p_94833_, Component p_94834_) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
add
(ToastComponent p_94856_, SystemToast.SystemToastId p_314591_, Component p_94858_, Component p_94859_) static void
addOrUpdate
(ToastComponent p_94870_, SystemToast.SystemToastId p_314579_, Component p_94872_, Component p_94873_) void
static void
forceHide
(ToastComponent p_314559_, SystemToast.SystemToastId p_314474_) getToken()
int
height()
static SystemToast
multiline
(Minecraft p_94848_, SystemToast.SystemToastId p_314435_, Component p_94850_, Component p_94851_) private static com.google.common.collect.ImmutableList
<FormattedCharSequence> nullToEmpty
(Component p_94861_) static void
onChunkLoadFailure
(Minecraft p_330933_, ChunkPos p_331933_) static void
onChunkSaveFailure
(Minecraft p_331849_, ChunkPos p_330399_) static void
onFileDropFailure
(Minecraft p_350375_, int p_350447_) static void
onLowDiskSpace
(Minecraft p_331174_) 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
(GuiGraphics p_281624_, ToastComponent p_282333_, long p_282762_) private void
renderBackgroundRow
(GuiGraphics p_281840_, int p_281750_, int p_282371_, int p_283613_, int p_282880_) void
int
width()
-
Field Details
-
BACKGROUND_SPRITE
-
MAX_LINE_SIZE
private static final int MAX_LINE_SIZE- See Also:
-
LINE_SPACING
private static final int LINE_SPACING- See Also:
-
MARGIN
private static final int MARGIN- See Also:
-
id
-
title
-
messageLines
-
lastChanged
private long lastChanged -
changed
private boolean changed -
width
private final int width -
forceHide
private boolean forceHide
-
-
Constructor Details
-
SystemToast
public SystemToast(SystemToast.SystemToastId p_314596_, Component p_94833_, @Nullable Component p_94834_) -
SystemToast
private SystemToast(SystemToast.SystemToastId p_314467_, Component p_94828_, List<FormattedCharSequence> p_94829_, int p_94830_)
-
-
Method Details
-
multiline
public static SystemToast multiline(Minecraft p_94848_, SystemToast.SystemToastId p_314435_, Component p_94850_, Component p_94851_) -
nullToEmpty
private static com.google.common.collect.ImmutableList<FormattedCharSequence> nullToEmpty(@Nullable Component p_94861_) -
width
public int width() -
height
public int height() -
forceHide
public void forceHide() -
render
-
renderBackgroundRow
private void renderBackgroundRow(GuiGraphics p_281840_, int p_281750_, int p_282371_, int p_283613_, int p_282880_) -
reset
-
getToken
-
add
public static void add(ToastComponent p_94856_, SystemToast.SystemToastId p_314591_, Component p_94858_, @Nullable Component p_94859_) -
addOrUpdate
public static void addOrUpdate(ToastComponent p_94870_, SystemToast.SystemToastId p_314579_, Component p_94872_, @Nullable Component p_94873_) -
forceHide
-
onWorldAccessFailure
-
onWorldDeleteFailure
-
onPackCopyFailure
-
onFileDropFailure
-
onLowDiskSpace
-
onChunkLoadFailure
-
onChunkSaveFailure
-