Class TutorialToast
java.lang.Object
net.minecraft.client.gui.components.toasts.TutorialToast
- All Implemented Interfaces:
Toast
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.client.gui.components.toasts.Toast
Toast.Visibility -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ResourceLocationprivate final TutorialToast.Iconsprivate floatprivate longprivate final Componentprivate floatstatic final intstatic final intstatic final intstatic final intprivate final booleanprivate final Componentprivate Toast.VisibilityFields inherited from interface net.minecraft.client.gui.components.toasts.Toast
NO_TOKEN, SLOT_HEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionTutorialToast(TutorialToast.Icons pIcon, Component pTitle, Component pMessage, boolean pProgressable) -
Method Summary
Modifier and TypeMethodDescriptionvoidhide()render(GuiGraphics pGuiGraphics, ToastComponent pToastComponent, long pTimeSinceLastVisible) voidupdateProgress(float pProgress)
-
Field Details
-
BACKGROUND_SPRITE
-
PROGRESS_BAR_WIDTH
public static final int PROGRESS_BAR_WIDTH- See Also:
-
PROGRESS_BAR_HEIGHT
public static final int PROGRESS_BAR_HEIGHT- See Also:
-
PROGRESS_BAR_X
public static final int PROGRESS_BAR_X- See Also:
-
PROGRESS_BAR_Y
public static final int PROGRESS_BAR_Y- See Also:
-
icon
-
title
-
message
-
visibility
-
lastProgressTime
private long lastProgressTime -
lastProgress
private float lastProgress -
progress
private float progress -
progressable
private final boolean progressable
-
-
Constructor Details
-
TutorialToast
public TutorialToast(TutorialToast.Icons pIcon, Component pTitle, @Nullable Component pMessage, boolean pProgressable)
-
-
Method Details
-
render
public Toast.Visibility render(GuiGraphics pGuiGraphics, ToastComponent pToastComponent, long pTimeSinceLastVisible) -
hide
public void hide() -
updateProgress
public void updateProgress(float pProgress)
-