类 SystemToast
java.lang.Object
net.minecraft.client.gui.components.toasts.SystemToast
- 所有已实现的接口:
Toast
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 net.minecraft.client.gui.components.toasts.Toast
Toast.Visibility
-
字段概要
字段修饰符和类型字段说明private boolean
private final SystemToast.SystemToastIds
private long
private static final int
private static final int
private static final int
private List<FormattedCharSequence>
private Component
private final int
从接口继承的字段 net.minecraft.client.gui.components.toasts.Toast
NO_TOKEN, SLOT_HEIGHT, TEXTURE
-
构造器概要
构造器限定符构造器说明private
SystemToast
(SystemToast.SystemToastIds pId, Component pTitle, List<FormattedCharSequence> pMessageLines, int pWidth) SystemToast
(SystemToast.SystemToastIds pId, Component pTitle, Component pMessage) -
方法概要
修饰符和类型方法说明static void
add
(ToastComponent pToastComponent, SystemToast.SystemToastIds pId, Component pTitle, Component pMessage) static void
addOrUpdate
(ToastComponent pToastComponent, SystemToast.SystemToastIds pId, Component pTitle, Component pMessage) getToken()
int
height()
static SystemToast
multiline
(Minecraft pMinecraft, SystemToast.SystemToastIds pId, Component pTitle, Component pMessage) private static com.google.common.collect.ImmutableList<FormattedCharSequence>
nullToEmpty
(Component pMessage) static void
onPackCopyFailure
(Minecraft pMinecraft, String pMessage) static void
onWorldAccessFailure
(Minecraft pMinecraft, String pMessage) static void
onWorldDeleteFailure
(Minecraft pMinecraft, String pMessage) render
(GuiGraphics pGuiGraphics, ToastComponent pToastComponent, long pTimeSinceLastVisible) private void
renderBackgroundRow
(GuiGraphics pGuiGraphics, ToastComponent pToastComponent, int p_281750_, int p_282371_, int p_283613_, int p_282880_) void
int
width()
-
字段详细资料
-
构造器详细资料
-
SystemToast
-
SystemToast
private SystemToast(SystemToast.SystemToastIds pId, Component pTitle, List<FormattedCharSequence> pMessageLines, int pWidth)
-
-
方法详细资料
-
multiline
public static SystemToast multiline(Minecraft pMinecraft, SystemToast.SystemToastIds pId, Component pTitle, Component pMessage) -
nullToEmpty
private static com.google.common.collect.ImmutableList<FormattedCharSequence> nullToEmpty(@Nullable Component pMessage) -
width
public int width() -
height
public int height() -
render
public Toast.Visibility render(GuiGraphics pGuiGraphics, ToastComponent pToastComponent, long pTimeSinceLastVisible) -
renderBackgroundRow
private void renderBackgroundRow(GuiGraphics pGuiGraphics, ToastComponent pToastComponent, int p_281750_, int p_282371_, int p_283613_, int p_282880_) -
reset
-
getToken
-
add
public static void add(ToastComponent pToastComponent, SystemToast.SystemToastIds pId, Component pTitle, @Nullable Component pMessage) -
addOrUpdate
public static void addOrUpdate(ToastComponent pToastComponent, SystemToast.SystemToastIds pId, Component pTitle, @Nullable Component pMessage) -
onWorldAccessFailure
-
onWorldDeleteFailure
-
onPackCopyFailure
-