类 TutorialToast
java.lang.Object
net.minecraft.client.gui.components.toasts.TutorialToast
- 所有已实现的接口:
Toast
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 net.minecraft.client.gui.components.toasts.Toast
Toast.Visibility
-
字段概要
字段修饰符和类型字段说明private final TutorialToast.Icons
private float
private long
private final Component
private float
static final int
static final int
static final int
static final int
private final boolean
private final Component
private Toast.Visibility
从接口继承的字段 net.minecraft.client.gui.components.toasts.Toast
NO_TOKEN, SLOT_HEIGHT, TEXTURE
-
构造器概要
构造器构造器说明TutorialToast
(TutorialToast.Icons pIcon, Component pTitle, Component pMessage, boolean pProgressable) -
方法概要
修饰符和类型方法说明void
hide()
render
(GuiGraphics pGuiGraphics, ToastComponent pToastComponent, long pTimeSinceLastVisible) void
updateProgress
(float pProgress)
-
字段详细资料
-
PROGRESS_BAR_WIDTH
public static final int PROGRESS_BAR_WIDTH- 另请参阅:
-
PROGRESS_BAR_HEIGHT
public static final int PROGRESS_BAR_HEIGHT- 另请参阅:
-
PROGRESS_BAR_X
public static final int PROGRESS_BAR_X- 另请参阅:
-
PROGRESS_BAR_Y
public static final int PROGRESS_BAR_Y- 另请参阅:
-
icon
-
title
-
message
-
visibility
-
lastProgressTime
private long lastProgressTime -
lastProgress
private float lastProgress -
progress
private float progress -
progressable
private final boolean progressable
-
-
构造器详细资料
-
TutorialToast
public TutorialToast(TutorialToast.Icons pIcon, Component pTitle, @Nullable Component pMessage, boolean pProgressable)
-
-
方法详细资料
-
render
public Toast.Visibility render(GuiGraphics pGuiGraphics, ToastComponent pToastComponent, long pTimeSinceLastVisible) -
hide
public void hide() -
updateProgress
public void updateProgress(float pProgress)
-