Package net.minecraft.client.gui.toasts
Class SystemToast
- java.lang.Object
-
- net.minecraft.client.gui.toasts.SystemToast
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SystemToast.Type
-
Nested classes/interfaces inherited from interface net.minecraft.client.gui.toasts.IToast
IToast.Visibility
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
changed
private SystemToast.Type
id
private long
lastChanged
private java.util.List<IReorderingProcessor>
messageLines
private ITextComponent
title
private int
width
-
Constructor Summary
Constructors Modifier Constructor Description private
SystemToast(SystemToast.Type p_i232264_1_, ITextComponent p_i232264_2_, java.util.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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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_)
SystemToast.Type
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_, java.lang.String p_238539_1_)
static void
onWorldAccessFailure(Minecraft p_238535_0_, java.lang.String p_238535_1_)
static void
onWorldDeleteFailure(Minecraft p_238538_0_, java.lang.String p_238538_1_)
IToast.Visibility
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 Detail
-
id
private final SystemToast.Type id
-
title
private ITextComponent title
-
messageLines
private java.util.List<IReorderingProcessor> messageLines
-
lastChanged
private long lastChanged
-
changed
private boolean changed
-
width
private final int width
-
-
Constructor Detail
-
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_, java.util.List<IReorderingProcessor> p_i232264_3_, int p_i232264_4_)
-
-
Method Detail
-
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_)
-
render
public IToast.Visibility render(MatrixStack p_230444_1_, ToastGui p_230444_2_, long p_230444_3_)
-
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
public void reset(ITextComponent p_193656_1_, @Nullable ITextComponent p_193656_2_)
-
getToken
public SystemToast.Type 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
public static void onWorldAccessFailure(Minecraft p_238535_0_, java.lang.String p_238535_1_)
-
onWorldDeleteFailure
public static void onWorldDeleteFailure(Minecraft p_238538_0_, java.lang.String p_238538_1_)
-
onPackCopyFailure
public static void onPackCopyFailure(Minecraft p_238539_0_, java.lang.String p_238539_1_)
-
-