net.minecraft.client.gui.components.toasts

public class SystemToast

implements Toast

fjo
net.minecraft.client.gui.components.toasts.SystemToast
net.minecraft.class_370
net.minecraft.client.toast.SystemToast
net.minecraft.src.C_3499_

Field summary

Modifier and TypeField
private static final ResourceLocation
a
BACKGROUND_SPRITE
field_45396
TEXTURE
f_290489_
private static final int
d
MAX_LINE_SIZE
field_32219
MIN_WIDTH
f_169078_
private static final int
e
LINE_SPACING
field_39926
LINE_HEIGHT
f_243015_
private static final int
f
MARGIN
field_39927
PADDING_Y
f_243021_
private final SystemToast$SystemToastId
g
id
field_2213
type
f_94820_
private Component
h
title
field_2215
title
f_94821_
private List<FormattedCharSequence>
i
messageLines
field_25037
lines
f_94822_
private long
j
lastChanged
field_2216
startTime
f_94823_
private boolean
k
changed
field_2214
justUpdated
f_94824_
private final int
l
width
field_25038
width
f_94825_
private boolean
m
forceHide
field_47582
hidden
f_303681_

Constructor summary

ModifierConstructor
public (SystemToast$SystemToastId type, Component title, Component description)
private (SystemToast$SystemToastId type, Component title, List<FormattedCharSequence> lines, int width)

Method summary

Modifier and TypeMethod
public static SystemToast
a(ffh arg0, fjo$a arg1, xp arg2, xp arg3)
multiline(Minecraft arg0, SystemToast$SystemToastId arg1, Component arg2, Component arg3)
method_29047(class_310 arg0, class_370$class_9037 arg1, class_2561 arg2, class_2561 arg3)
create(MinecraftClient client, SystemToast$Type type, Text title, Text description)
m_94847_(C_3391_ p_94848_, C_3499_$C_301970_ p_94849_, C_4996_ p_94850_, C_4996_ p_94851_)
private static com.google.common.collect.ImmutableList<FormattedCharSequence>
a(xp arg0)
nullToEmpty(Component arg0)
method_29626(class_2561 arg0)
getTextAsList(Text text)
m_94860_(C_4996_ p_94861_)
public int
a()
width()
method_29049()
getWidth()
m_7828_()
public int
b()
height()
method_29050()
getHeight()
m_94899_()
public void
c()
forceHide()
method_55508()
hide()
m_305676_()
public Toast$Visibility
a(fgt arg0, fjq arg1, long arg2)
render(GuiGraphics arg0, ToastComponent arg1, long arg2)
method_1986(class_332 arg0, class_374 arg1, long arg2)
draw(DrawContext arg0, ToastManager arg1, long arg2)
m_7172_(C_279497_ p_282333_, C_3503_ p_282762_, long arg2)
private void
a(fgt arg0, int arg1, int arg2, int arg3, int arg4)
renderBackgroundRow(GuiGraphics arg0, int arg1, int arg2, int arg3, int arg4)
method_29046(class_332 arg0, int arg1, int arg2, int arg3, int arg4)
drawPart(DrawContext context, int arg1, int arg2, int arg3, int arg4)
m_280654_(C_279497_ p_281750_, int p_282371_, int p_283613_, int p_282880_, int arg4)
public void
a(xp arg0, xp arg1)
reset(Component arg0, Component arg1)
method_1991(class_2561 arg0, class_2561 arg1)
setContent(Text title, Text description)
m_94862_(C_4996_ p_94864_, C_4996_ arg1)
public SystemToast$SystemToastId
d()
getToken()
method_1989()
getType()
m_7283_()
public static void
a(fjq arg0, fjo$a arg1, xp arg2, xp arg3)
add(ToastComponent arg0, SystemToast$SystemToastId arg1, Component arg2, Component arg3)
method_27024(class_374 arg0, class_370$class_9037 arg1, class_2561 arg2, class_2561 arg3)
add(ToastManager manager, SystemToast$Type type, Text title, Text description)
m_94855_(C_3503_ p_94856_, C_3499_$C_301970_ p_94857_, C_4996_ p_94858_, C_4996_ p_94859_)
public static void
b(fjq arg0, fjo$a arg1, xp arg2, xp arg3)
addOrUpdate(ToastComponent arg0, SystemToast$SystemToastId arg1, Component arg2, Component arg3)
method_1990(class_374 arg0, class_370$class_9037 arg1, class_2561 arg2, class_2561 arg3)
show(ToastManager manager, SystemToast$Type type, Text title, Text description)
m_94869_(C_3503_ p_94870_, C_3499_$C_301970_ p_94871_, C_4996_ p_94872_, C_4996_ p_94873_)
public static void
a(fjq arg0, fjo$a arg1)
forceHide(ToastComponent arg0, SystemToast$SystemToastId arg1)
method_55507(class_374 arg0, class_370$class_9037 arg1)
hide(ToastManager manager, SystemToast$Type type)
m_305701_(C_3503_ p_311181_, C_3499_$C_301970_ p_311637_)
public static void
a(ffh arg0, String arg1)
onWorldAccessFailure(Minecraft arg0, String arg1)
method_27023(class_310 arg0, String arg1)
addWorldAccessFailureToast(MinecraftClient client, String worldName)
m_94852_(C_3391_ p_94853_, String p_94854_)
public static void
b(ffh arg0, String arg1)
onWorldDeleteFailure(Minecraft arg0, String arg1)
method_27025(class_310 arg0, String arg1)
addWorldDeleteFailureToast(MinecraftClient client, String worldName)
m_94866_(C_3391_ p_94867_, String p_94868_)
public static void
c(ffh arg0, String arg1)
onPackCopyFailure(Minecraft arg0, String arg1)
method_29627(class_310 arg0, String arg1)
addPackCopyFailure(MinecraftClient client, String directory)
m_94875_(C_3391_ p_94876_, String p_94877_)
public static void
a(ffh arg0)
onLowDiskSpace(Minecraft arg0)
method_57723(class_310 arg0)
addLowDiskSpace(MinecraftClient client)
m_321093_(C_3391_ p_335579_)
public static void
a(ffh arg0, dbh arg1)
onChunkLoadFailure(Minecraft arg0, ChunkPos arg1)
method_57724(class_310 arg0, class_1923 arg1)
addChunkLoadFailure(MinecraftClient client, ChunkPos pos)
m_321637_(C_3391_ p_335709_, C_1560_ p_330201_)
public static void
b(ffh arg0, dbh arg1)
onChunkSaveFailure(Minecraft arg0, ChunkPos arg1)
method_57725(class_310 arg0, class_1923 arg1)
addChunkSaveFailure(MinecraftClient client, ChunkPos pos)
m_323567_(C_3391_ p_328693_, C_1560_ p_333444_)