Class SystemToast
java.lang.Object
net.minecraft.client.gui.components.toasts.SystemToast
- All Implemented Interfaces:
- Toast
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface net.minecraft.client.gui.components.toasts.ToastToast.Visibility
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final ResourceLocationprivate booleanprivate booleanprivate final SystemToast.SystemToastIdprivate longprivate static final intprivate static final intprivate static final intprivate List<FormattedCharSequence>private Componentprivate final intFields inherited from interface net.minecraft.client.gui.components.toasts.ToastNO_TOKEN, SLOT_HEIGHT
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateSystemToast(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 SummaryModifier and TypeMethodDescriptionstatic voidadd(ToastComponent p_94856_, SystemToast.SystemToastId p_314591_, Component p_94858_, Component p_94859_) static voidaddOrUpdate(ToastComponent p_94870_, SystemToast.SystemToastId p_314579_, Component p_94872_, Component p_94873_) voidstatic voidforceHide(ToastComponent p_314559_, SystemToast.SystemToastId p_314474_) getToken()intheight()static SystemToastmultiline(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 voidonPackCopyFailure(Minecraft p_94876_, String p_94877_) static voidonWorldAccessFailure(Minecraft p_94853_, String p_94854_) static voidonWorldDeleteFailure(Minecraft p_94867_, String p_94868_) render(GuiGraphics p_281624_, ToastComponent p_282333_, long p_282762_) private voidrenderBackgroundRow(GuiGraphics p_281840_, int p_281750_, int p_282371_, int p_283613_, int p_282880_) voidintwidth()
- 
Field Details- 
BACKGROUND_SPRITE
- 
MAX_LINE_SIZEprivate static final int MAX_LINE_SIZE- See Also:
 
- 
LINE_SPACINGprivate static final int LINE_SPACING- See Also:
 
- 
MARGINprivate static final int MARGIN- See Also:
 
- 
id
- 
title
- 
messageLines
- 
lastChangedprivate long lastChanged
- 
changedprivate boolean changed
- 
widthprivate final int width
- 
forceHideprivate boolean forceHide
 
- 
- 
Constructor Details- 
SystemToastpublic SystemToast(SystemToast.SystemToastId p_314596_, Component p_94833_, @Nullable Component p_94834_) 
- 
SystemToastprivate SystemToast(SystemToast.SystemToastId p_314467_, Component p_94828_, List<FormattedCharSequence> p_94829_, int p_94830_) 
 
- 
- 
Method Details- 
multilinepublic static SystemToast multiline(Minecraft p_94848_, SystemToast.SystemToastId p_314435_, Component p_94850_, Component p_94851_) 
- 
nullToEmptyprivate static com.google.common.collect.ImmutableList<FormattedCharSequence> nullToEmpty(@Nullable Component p_94861_) 
- 
widthpublic int width()
- 
heightpublic int height()
- 
forceHidepublic void forceHide()
- 
render
- 
renderBackgroundRowprivate void renderBackgroundRow(GuiGraphics p_281840_, int p_281750_, int p_282371_, int p_283613_, int p_282880_) 
- 
reset
- 
getToken
- 
addpublic static void add(ToastComponent p_94856_, SystemToast.SystemToastId p_314591_, Component p_94858_, @Nullable Component p_94859_) 
- 
addOrUpdatepublic static void addOrUpdate(ToastComponent p_94870_, SystemToast.SystemToastId p_314579_, Component p_94872_, @Nullable Component p_94873_) 
- 
forceHide
- 
onWorldAccessFailure
- 
onWorldDeleteFailure
- 
onPackCopyFailure
 
-